diff options
author | shin <shin@FreeBSD.org> | 2000-01-28 20:10:51 +0000 |
---|---|---|
committer | shin <shin@FreeBSD.org> | 2000-01-28 20:10:51 +0000 |
commit | 73f095255dc27e4785f89078ae6e7ffa5e256eed (patch) | |
tree | 156291f96a1581d40c62dfc8809ac5e75d53b979 | |
parent | e94ca06e82706150b246287b642896f2e0fb74c4 (diff) | |
download | FreeBSD-src-73f095255dc27e4785f89078ae6e7ffa5e256eed.zip FreeBSD-src-73f095255dc27e4785f89078ae6e7ffa5e256eed.tar.gz |
Count AF_INET6 attachement to routing socket.
Obtained from: KAME project
-rw-r--r-- | sys/net/rtsock.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |