diff options
author | 2016-04-18 12:10:34 +0000 | |
---|---|---|
committer | 2016-04-18 12:10:34 +0000 | |
commit | 5d8f406ef6165dd142de078470fbfacfaf55200d (patch) | |
tree | 6ec3257ae6e48f13141b9223662b78f56426cdb5 /sys/netinet/ip_output.c | |
parent | Put a KERNEL_LOCK/UNLOCK dance around sections that still need some (diff) | |
download | wireguard-openbsd-5d8f406ef6165dd142de078470fbfacfaf55200d.tar.xz wireguard-openbsd-5d8f406ef6165dd142de078470fbfacfaf55200d.zip |
Unbreak RAMDISK, found by deraadt@
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r-- | sys/netinet/ip_output.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index d3f85647ac5..6f47f429ca8 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_output.c,v 1.319 2016/04/18 06:43:51 mpi Exp $ */ +/* $OpenBSD: ip_output.c,v 1.320 2016/04/18 12:10:34 mpi Exp $ */ /* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */ /* @@ -100,11 +100,14 @@ ip_output(struct mbuf *m0, struct mbuf *opt, struct route *ro, int flags, struct ifnet *ifp = NULL; struct mbuf *m = m0; int hlen = sizeof (struct ip); - int rv, len, error = 0; + int len, error = 0; struct route iproute; struct sockaddr_in *dst; struct tdb *tdb = NULL; u_long mtu; +#if defined(MROUTING) + int rv; +#endif #ifdef IPSEC if (inp && (inp->inp_flags & INP_IPV6) != 0) |