| version 1.179, 2003/09/28 04:45:14 |
version 1.180, 2003/11/10 20:03:29 |
| Line 1922 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| Line 1922 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| |
|
| int error, old; |
int error, old; |
| |
|
| /* All sysctl names at this level are terminal. */ |
/* All sysctl names (except ifq.*) at this level are terminal. */ |
| if (namelen != 1) |
if ((namelen != 1) && !(namelen == 2 && name[0] == IPCTL_IFQ)) |
| return (ENOTDIR); |
return (ENOTDIR); |
| |
|
| switch (name[0]) { |
switch (name[0]) { |
| case IPCTL_FORWARDING: |
case IPCTL_FORWARDING: |
| Line 2059 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| Line 2059 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| case IPCTL_CHECKINTERFACE: |
case IPCTL_CHECKINTERFACE: |
| return (sysctl_int(oldp, oldlenp, newp, newlen, |
return (sysctl_int(oldp, oldlenp, newp, newlen, |
| &ip_checkinterface)); |
&ip_checkinterface)); |
| |
case IPCTL_IFQ: |
| |
return (sysctl_ifq(name+1, namelen-1, |
| |
oldp, oldlenp, newp, newlen, |
| |
&ipintrq)); |
| |
|
| default: |
default: |
| return (EOPNOTSUPP); |
return (EOPNOTSUPP); |
| } |
} |