diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-11-13 10:25:49 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-11-13 10:25:49 +0000 |
commit | 5ccde455fa5e4ac939f285ce7e06f1acf9be1204 (patch) | |
tree | 2b3fb7c9481236d0ff2ee4ac8cbb99955e04611c /sys/netinet | |
parent | ee9c90cf8ab98247cdf2704caba3ef582b16bba2 (diff) |
Kill another tunnel leftover and keep PIM stuff inside #ifdef PIM.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_mroute.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c index bc8b1271353..2bdb34e89dc 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_mroute.c,v 1.86 2015/11/12 18:19:27 mpi Exp $ */ +/* $OpenBSD: ip_mroute.c,v 1.87 2015/11/13 10:25:48 mpi Exp $ */ /* $NetBSD: ip_mroute.c,v 1.85 2004/04/26 01:31:57 matt Exp $ */ /* @@ -212,19 +212,15 @@ static struct pim_encap_pimhdr pim_encap_pimhdr = { static struct ifnet multicast_register_if; static vifi_t reg_vif_num = VIFI_INVALID; -#endif /* PIM */ - - -/* - * Private variables. - */ -static vifi_t numvifs = 0; -static int have_encap_tunnel = 0; /* * whether or not special PIM assert processing is enabled. */ static int pim_assert; +#endif /* PIM */ + +static vifi_t numvifs = 0; + /* * Rate limit for assert notification messages, in usec */ @@ -563,7 +559,9 @@ ip_mrouter_init(struct socket *so, struct mbuf *m) arc4random_buf(&mfchashkey, sizeof(mfchashkey)); memset(nexpire, 0, sizeof(nexpire)); +#ifdef PIM pim_assert = 0; +#endif timeout_set(&expire_upcalls_ch, expire_upcalls, NULL); timeout_add_msec(&expire_upcalls_ch, EXPIRE_TIMEOUT); @@ -607,9 +605,12 @@ ip_mrouter_done() } numvifs = 0; - pim_assert = 0; mrt_api_config = 0; +#ifdef PIM + pim_assert = 0; +#endif + timeout_del(&expire_upcalls_ch); /* @@ -629,9 +630,6 @@ ip_mrouter_done() free(mfchashtbl, M_MRTABLE, 0); mfchashtbl = NULL; - /* Reset de-encapsulation cache. */ - have_encap_tunnel = 0; - ip_mrouter = NULL; splx(s); |