Count AF_INET6 attachement to routing socket.
Obtained from: KAME project
This commit is contained in:
parent
a889d1fb76
commit
899ce4f40c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56761
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user