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
This commit is contained in:
Luigi Rizzo 1999-11-26 13:37:09 +00:00
parent 6512591f8d
commit b73ccac130

View File

@ -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 :