in_pcb.c (1096332a4a101a75ba928acd5e2fc2edc4d061a8) | in_pcb.c (f6dfe47a145263dc5eb67fa4789925ab708709bc) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1991, 1993, 1995 3 * The Regents of the University of California. 4 * Copyright (c) 2007-2009 Robert N. M. Watson 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 112 unchanged lines hidden (view full) --- 121 else if ((var) > (max)) { (var) = (max); } 122 123static int 124sysctl_net_ipport_check(SYSCTL_HANDLER_ARGS) 125{ 126 INIT_VNET_INET(curvnet); 127 int error; 128 | 1/*- 2 * Copyright (c) 1982, 1986, 1991, 1993, 1995 3 * The Regents of the University of California. 4 * Copyright (c) 2007-2009 Robert N. M. Watson 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 112 unchanged lines hidden (view full) --- 121 else if ((var) > (max)) { (var) = (max); } 122 123static int 124sysctl_net_ipport_check(SYSCTL_HANDLER_ARGS) 125{ 126 INIT_VNET_INET(curvnet); 127 int error; 128 |
129 error = sysctl_handle_int(oidp, oidp->oid_arg1, oidp->oid_arg2, req); | 129 SYSCTL_RESOLVE_V_ARG1(); 130 131 error = sysctl_handle_int(oidp, arg1, arg2, req); |
130 if (error == 0) { 131 RANGECHK(V_ipport_lowfirstauto, 1, IPPORT_RESERVED - 1); 132 RANGECHK(V_ipport_lowlastauto, 1, IPPORT_RESERVED - 1); 133 RANGECHK(V_ipport_firstauto, IPPORT_RESERVED, IPPORT_MAX); 134 RANGECHK(V_ipport_lastauto, IPPORT_RESERVED, IPPORT_MAX); 135 RANGECHK(V_ipport_hifirstauto, IPPORT_RESERVED, IPPORT_MAX); 136 RANGECHK(V_ipport_hilastauto, IPPORT_RESERVED, IPPORT_MAX); 137 } --- 1810 unchanged lines hidden --- | 132 if (error == 0) { 133 RANGECHK(V_ipport_lowfirstauto, 1, IPPORT_RESERVED - 1); 134 RANGECHK(V_ipport_lowlastauto, 1, IPPORT_RESERVED - 1); 135 RANGECHK(V_ipport_firstauto, IPPORT_RESERVED, IPPORT_MAX); 136 RANGECHK(V_ipport_lastauto, IPPORT_RESERVED, IPPORT_MAX); 137 RANGECHK(V_ipport_hifirstauto, IPPORT_RESERVED, IPPORT_MAX); 138 RANGECHK(V_ipport_hilastauto, IPPORT_RESERVED, IPPORT_MAX); 139 } --- 1810 unchanged lines hidden --- |