diff options
author | 2009-06-20 10:39:52 +0000 | |
---|---|---|
committer | 2009-06-20 10:39:52 +0000 | |
commit | 4d2a90de5a726e1f43807f5b41a2863006e65115 (patch) | |
tree | 88457e12748c6ff5ece74c723b096bc5ce26e48c | |
parent | Remove incomplete list of specific PHY models that might be associated (diff) | |
download | wireguard-openbsd-4d2a90de5a726e1f43807f5b41a2863006e65115.tar.xz wireguard-openbsd-4d2a90de5a726e1f43807f5b41a2863006e65115.zip |
Decrement routing socket count in MPLS detach case
While here, fix whitespace (spaces -> tabs) issue spotted by michele@
ok michele@, claudio@
-rw-r--r-- | sys/net/rtsock.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 358d918b89d..28f9283f6ce 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsock.c,v 1.89 2009/06/06 12:31:17 rainer Exp $ */ +/* $OpenBSD: rtsock.c,v 1.90 2009/06/20 10:39:52 blambert Exp $ */ /* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */ /* @@ -141,6 +141,10 @@ route_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam, route_cb.ip_count--; else if (af == AF_INET6) route_cb.ip6_count--; +#ifdef MPLS + else if (af == AF_MPLS) + route_cb.mpls_count--; +#endif /* MPLS */ route_cb.any_count--; } s = splsoftnet(); @@ -170,8 +174,8 @@ route_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam, else if (af == AF_INET6) route_cb.ip6_count++; #ifdef MPLS - else if (af == AF_MPLS) - route_cb.mpls_count++; + else if (af == AF_MPLS) + route_cb.mpls_count++; #endif /* MPLS */ rp->rcb_faddr = &route_src; route_cb.any_count++; |