diff options
author | luigi <luigi@FreeBSD.org> | 1999-11-26 13:37:09 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 1999-11-26 13:37:09 +0000 |
commit | 12f3e647f6603bf701bd9da61f2f21c123f145e3 (patch) | |
tree | 5fa174a16aba30de131272fc872443df375c602c /sys/netinet/ip_dummynet.c | |
parent | 8efde88e337535e97c659d3e818ae4455848f19c (diff) | |
download | FreeBSD-src-12f3e647f6603bf701bd9da61f2f21c123f145e3.zip FreeBSD-src-12f3e647f6603bf701bd9da61f2f21c123f145e3.tar.gz |
RTFREE the correct route entry in dummynet_io(). The previous
code failed in handling things like "forward" actions.
Reported-and-tested-by: Jean-Hugues ROYER jhroyer@joher.com
Diffstat (limited to 'sys/netinet/ip_dummynet.c')
-rw-r--r-- | sys/netinet/ip_dummynet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_dummynet.c b/sys/netinet/ip_dummynet.c index 66d9e53..401e24d 100644 --- a/sys/netinet/ip_dummynet.c +++ b/sys/netinet/ip_dummynet.c @@ -217,11 +217,11 @@ dn_move(struct dn_pipe *pipe, int immediate) */ switch (pkt->dn_dir) { case DN_TO_IP_OUT: { - struct rtentry *tmp_rt = pkt->ro.ro_rt ; + struct route *ro = &(pkt->ro) ; (void)ip_output((struct mbuf *)pkt, (struct mbuf *)pkt->ifp, - &(pkt->ro), pkt->dn_dst, NULL); - rt_unref (tmp_rt) ; + ro, pkt->dn_dst, NULL); + rt_unref (ro->ro_rt) ; } break ; case DN_TO_IP_IN : |