diff options
author | glebius <glebius@FreeBSD.org> | 2012-07-02 19:44:18 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2012-07-02 19:44:18 +0000 |
commit | 6223b4d21b416cf6379fee6c7a63ddafa0d8c88a (patch) | |
tree | 1a1b353fcccca68bd5c82f51bfca79669ea5a62a /sys/netinet/ip_mroute.c | |
parent | dccf4b181e80e005034ef0e1aa8c3ebaa0e69fdc (diff) | |
download | FreeBSD-src-6223b4d21b416cf6379fee6c7a63ddafa0d8c88a.zip FreeBSD-src-6223b4d21b416cf6379fee6c7a63ddafa0d8c88a.tar.gz |
Remove route caching from IP multicast routing code. There is no
reason to do that, and also, cached route never got unreferenced,
which meant a reference leak.
Reviewed by: bms
Diffstat (limited to 'sys/netinet/ip_mroute.c')
-rw-r--r-- | sys/netinet/ip_mroute.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c index d7c23cd..9250be5 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -924,7 +924,6 @@ add_vif(struct vifctl *vifcp) vifp->v_pkt_out = 0; vifp->v_bytes_in = 0; vifp->v_bytes_out = 0; - bzero(&vifp->v_route, sizeof(vifp->v_route)); /* Adjust numvifs up if the vifi is higher than numvifs */ if (V_numvifs <= vifcp->vifc_vifi) @@ -1702,7 +1701,7 @@ send_packet(struct vif *vifp, struct mbuf *m) * should get rejected because they appear to come from * the loopback interface, thus preventing looping. */ - error = ip_output(m, NULL, &vifp->v_route, IP_FORWARDING, &imo, NULL); + error = ip_output(m, NULL, NULL, IP_FORWARDING, &imo, NULL); CTR3(KTR_IPMF, "%s: vif %td err %d", __func__, (ptrdiff_t)(vifp - V_viftable), error); } |