From 73f095255dc27e4785f89078ae6e7ffa5e256eed Mon Sep 17 00:00:00 2001 From: shin Date: Fri, 28 Jan 2000 20:10:51 +0000 Subject: Count AF_INET6 attachement to routing socket. Obtained from: KAME project --- sys/net/rtsock.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys') diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index bd7bdab..265a1c7 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -133,6 +133,9 @@ rts_attach(struct socket *so, int proto, struct proc *p) case AF_INET: route_cb.ip_count++; break; + case AF_INET6: + route_cb.ip6_count++; + break; case AF_IPX: route_cb.ipx_count++; break; @@ -186,6 +189,9 @@ rts_detach(struct socket *so) case AF_INET: route_cb.ip_count--; break; + case AF_INET6: + route_cb.ip6_count--; + break; case AF_IPX: route_cb.ipx_count--; break; -- cgit v1.1