diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2005-05-24 04:20:27 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2005-05-24 04:20:27 +0000 |
commit | 3b1f70a1b16fe7fbb4dd2023fca5a05586074d52 (patch) | |
tree | 72f3f02f4df5d3c61cca11a91dd883a2a896d7a4 /sys/netinet/ip_input.c | |
parent | 361cb4c97740f40c5cd3808004369134731beb44 (diff) |
add net.inet.ip.ifq for monitoring and changing ifqueue; similar to netbsd
ok henning
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r-- | sys/netinet/ip_input.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 7bb92700d08..3879795e5b1 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_input.c,v 1.126 2005/04/25 17:55:51 brad Exp $ */ +/* $OpenBSD: ip_input.c,v 1.127 2005/05/24 04:20:25 markus Exp $ */ /* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */ /* @@ -1581,8 +1581,8 @@ ip_sysctl(name, namelen, oldp, oldlenp, newp, newlen) { int error; - /* All sysctl names at this level are terminal. */ - if (namelen != 1) + /* Almost all sysctl names at this level are terminal. */ + if (namelen != 1 && name[0] != IPCTL_IFQUEUE) return (ENOTDIR); switch (name[0]) { @@ -1628,6 +1628,9 @@ ip_sysctl(name, namelen, oldp, oldlenp, newp, newlen) return (sysctl_tstring(oldp, oldlenp, newp, newlen, ipsec_def_comp, sizeof(ipsec_def_comp))); + case IPCTL_IFQUEUE: + return (sysctl_ifq(name + 1, namelen - 1, + oldp, oldlenp, newp, newlen, &ipintrq)); default: if (name[0] < IPCTL_MAXID) return (sysctl_int_arr(ipctl_vars, name, namelen, |