diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c index 40159c06ea6b..ab06f3d4c570 100644 --- a/sys/netinet6/ip6_mroute.c +++ b/sys/netinet6/ip6_mroute.c @@ -1,4 +1,4 @@ -/* $NetBSD: ip6_mroute.c,v 1.64 2005/05/29 21:43:09 christos Exp $ */ +/* $NetBSD: ip6_mroute.c,v 1.65 2005/08/28 21:03:18 rpaulo Exp $ */ /* $KAME: ip6_mroute.c,v 1.49 2001/07/25 09:21:18 jinmei Exp $ */ /* @@ -117,7 +117,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip6_mroute.c,v 1.64 2005/05/29 21:43:09 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip6_mroute.c,v 1.65 2005/08/28 21:03:18 rpaulo Exp $"); #include "opt_inet.h" #include "opt_mrouting.h" @@ -134,6 +134,7 @@ __KERNEL_RCSID(0, "$NetBSD: ip6_mroute.c,v 1.64 2005/05/29 21:43:09 christos Exp #include #include #include +#include #include #include @@ -1928,3 +1929,31 @@ pim6_input(mp, offp, proto) rip6_input(&m, offp, proto); return (IPPROTO_DONE); } + +SYSCTL_SETUP(sysctl_net_inet6_pim6_setup, "sysctl net.inet6.pim6 subtree setup") +{ + sysctl_createv(clog, 0, NULL, NULL, + CTLFLAG_PERMANENT, + CTLTYPE_NODE, "net", NULL, + NULL, 0, NULL, 0, + CTL_NET, CTL_EOL); + sysctl_createv(clog, 0, NULL, NULL, + CTLFLAG_PERMANENT, + CTLTYPE_NODE, "inet6", NULL, + NULL, 0, NULL, 0, + CTL_NET, PF_INET6, CTL_EOL); + sysctl_createv(clog, 0, NULL, NULL, + CTLFLAG_PERMANENT, + CTLTYPE_NODE, "pim6", + SYSCTL_DESCR("PIMv6 settings"), + NULL, 0, NULL, 0, + CTL_NET, PF_INET6, IPPROTO_PIM, CTL_EOL); + + sysctl_createv(clog, 0, NULL, NULL, + CTLFLAG_PERMANENT, + CTLTYPE_STRUCT, "stats", + SYSCTL_DESCR("PIMv6 statistics"), + NULL, 0, &pim6stat, sizeof(pim6stat), + CTL_NET, PF_INET6, IPPROTO_PIM, PIM6CTL_STATS, + CTL_EOL); +} diff --git a/sys/netinet6/pim6_var.h b/sys/netinet6/pim6_var.h index 827201d92b2c..42da8bee1026 100644 --- a/sys/netinet6/pim6_var.h +++ b/sys/netinet6/pim6_var.h @@ -1,4 +1,4 @@ -/* $NetBSD: pim6_var.h,v 1.11 2004/09/04 23:30:07 manu Exp $ */ +/* $NetBSD: pim6_var.h,v 1.12 2005/08/28 21:03:18 rpaulo Exp $ */ /* $KAME: pim6_var.h,v 1.8 2000/06/06 08:07:43 jinmei Exp $ */ /* @@ -64,6 +64,6 @@ int pim6_input __P((struct mbuf **, int*, int)); #define PIM6CTL_NAMES { \ { 0, 0 }, \ - { 0, 0 }, \ + { "stats", CTLTYPE_STRUCT }, \ } #endif /* _NETINET6_PIM6_VAR_H_ */