aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/ip_fastfwd.c
diff options
context:
space:
mode:
authorKip Macy <kmacy@FreeBSD.org>2009-04-16 20:30:28 +0000
committerKip Macy <kmacy@FreeBSD.org>2009-04-16 20:30:28 +0000
commit279aa3d419d5bfaf514ed543ab177852e4c2b013 (patch)
treef09ffe8dbc619e723cdaebdc910a5ed28f73768b /sys/netinet/ip_fastfwd.c
parentfe6939906918258e6c2cf78df5f5f14d893ec1a0 (diff)
Notes
Diffstat (limited to 'sys/netinet/ip_fastfwd.c')
-rw-r--r--sys/netinet/ip_fastfwd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_fastfwd.c b/sys/netinet/ip_fastfwd.c
index 0479064ae49c9..8752916934f19 100644
--- a/sys/netinet/ip_fastfwd.c
+++ b/sys/netinet/ip_fastfwd.c
@@ -183,7 +183,7 @@ ip_fastforward(struct mbuf *m)
M_ASSERTVALID(m);
M_ASSERTPKTHDR(m);
- ro.ro_rt = NULL;
+ bzero(&ro, sizeof(ro));
/*
* Step 1: check for packet drop conditions (and sanity checks)
@@ -552,7 +552,7 @@ passout:
* Send off the packet via outgoing interface
*/
error = (*ifp->if_output)(ifp, m,
- (struct sockaddr *)dst, ro.ro_rt);
+ (struct sockaddr *)dst, &ro);
} else {
/*
* Handle EMSGSIZE with icmp reply needfrag for TCP MTU discovery
@@ -585,7 +585,7 @@ passout:
m->m_nextpkt = NULL;
error = (*ifp->if_output)(ifp, m,
- (struct sockaddr *)dst, ro.ro_rt);
+ (struct sockaddr *)dst, &ro);
if (error)
break;
} while ((m = m0) != NULL);