Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 implement net.inet6.ifq
details: https://anonhg.NetBSD.org/src/rev/ef390440bd8e
branches: trunk
changeset: 555246:ef390440bd8e
user: itojun <itojun%NetBSD.org@localhost>
date: Wed Nov 12 15:25:19 2003 +0000
description:
implement net.inet6.ifq
diffstat:
sys/netinet6/in6.h | 6 ++++--
sys/netinet6/ip6_input.c | 11 +++++++----
2 files changed, 11 insertions(+), 6 deletions(-)
diffs (68 lines):
diff -r 459fb3978506 -r ef390440bd8e sys/netinet6/in6.h
--- a/sys/netinet6/in6.h Wed Nov 12 15:00:05 2003 +0000
+++ b/sys/netinet6/in6.h Wed Nov 12 15:25:19 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in6.h,v 1.43 2003/08/07 16:33:24 agc Exp $ */
+/* $NetBSD: in6.h,v 1.44 2003/11/12 15:25:19 itojun Exp $ */
/* $KAME: in6.h,v 1.83 2001/03/29 02:55:07 jinmei Exp $ */
/*
@@ -538,9 +538,10 @@
#define IPV6CTL_LOWPORTMAX 31 /* maximum reserved port */
/* 32 to 40: resrved */
#define IPV6CTL_MAXFRAGS 41 /* max fragments */
+#define IPV6CTL_IFQ 42 /* ip6intrq node */
/* New entries should be added here from current IPV6CTL_MAXID value. */
/* to define items, should talk with KAME guys first, for *BSD compatibility */
-#define IPV6CTL_MAXID 42
+#define IPV6CTL_MAXID 43
#define IPV6CTL_NAMES { \
{ 0, 0 }, \
@@ -585,6 +586,7 @@
{ 0, 0 }, \
{ 0, 0 }, \
{ "maxfrags", CTLTYPE_INT }, \
+ { "ifq", CTLTYPE_NODE }, \
}
#endif /* _NETBSD_SOURCE */
diff -r 459fb3978506 -r ef390440bd8e sys/netinet6/ip6_input.c
--- a/sys/netinet6/ip6_input.c Wed Nov 12 15:00:05 2003 +0000
+++ b/sys/netinet6/ip6_input.c Wed Nov 12 15:25:19 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip6_input.c,v 1.68 2003/10/30 01:43:09 simonb Exp $ */
+/* $NetBSD: ip6_input.c,v 1.69 2003/11/12 15:25:19 itojun Exp $ */
/* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */
/*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.68 2003/10/30 01:43:09 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.69 2003/11/12 15:25:19 itojun Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -1446,8 +1446,8 @@
{
int old, error;
- /* All sysctl names at this level are terminal. */
- if (namelen != 1)
+ /* All sysctl names (except ifq.*) at this level are terminal. */
+ if ((namelen != 1) && !(namelen == 2 && name[0] == IPCTL_IFQ))
return ENOTDIR;
switch (name[0]) {
@@ -1554,6 +1554,9 @@
#endif
case IPV6CTL_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:
return EOPNOTSUPP;
}
Home |
Main Index |
Thread Index |
Old Index