summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-10-30 20:44:03 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-10-30 20:44:03 +0000
commit4b7745662014fc8c07efbf1f5e73a9e842d9a590 (patch)
treeb8f5e94f2212c1b378563f78af154c3574407c20 /sys/net
parent174108d18746678167a3c5a08b610e208eae3b06 (diff)
Fix building with !INET6 kernels.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_trunk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_trunk.c b/sys/net/if_trunk.c
index a55d03ff1a8..9783835847e 100644
--- a/sys/net/if_trunk.c
+++ b/sys/net/if_trunk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_trunk.c,v 1.56 2008/10/28 07:18:45 brad Exp $ */
+/* $OpenBSD: if_trunk.c,v 1.57 2008/10/30 20:44:02 brad Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org>
@@ -983,7 +983,7 @@ u_int32_t
trunk_hashmbuf(struct mbuf *m, u_int32_t key)
{
u_int16_t etype;
- u_int32_t flow, p = 0;
+ u_int32_t p = 0;
u_int16_t *vlan, vlanbuf[2];
int off;
struct ether_header *eh;
@@ -991,6 +991,7 @@ trunk_hashmbuf(struct mbuf *m, u_int32_t key)
struct ip *ip, ipbuf;
#endif
#ifdef INET6
+ u_int32_t flow;
struct ip6_hdr *ip6, ip6buf;
#endif