| version 1.68, 2003/10/30 01:43:09 |
version 1.69, 2003/11/12 15:25:19 |
| Line 1446 ip6_sysctl(name, namelen, oldp, oldlenp, |
|
| Line 1446 ip6_sysctl(name, namelen, oldp, oldlenp, |
|
| { |
{ |
| int old, error; |
int old, error; |
| |
|
| /* 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]) { |
| Line 1554 ip6_sysctl(name, namelen, oldp, oldlenp, |
|
| Line 1554 ip6_sysctl(name, namelen, oldp, oldlenp, |
|
| #endif |
#endif |
| case IPV6CTL_MAXFRAGS: |
case IPV6CTL_MAXFRAGS: |
| return sysctl_int(oldp, oldlenp, newp, newlen, &ip6_maxfrags); |
return sysctl_int(oldp, oldlenp, newp, newlen, &ip6_maxfrags); |
| |
case IPV6CTL_IFQ: |
| |
return sysctl_ifq(name + 1, namelen - 1, oldp, oldlenp, |
| |
newp, newlen, &ip6intrq); |
| default: |
default: |
| return EOPNOTSUPP; |
return EOPNOTSUPP; |
| } |
} |