summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2005-10-25 11:19:36 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2005-10-25 11:19:36 +0000
commite9f88a64e3e7bd8d4545ac3f86989de557aa9a0f (patch)
tree9a32aaa3f49fa471fc44878a73a72c9ba55a604a
parent97319fab1685b669d883ad4db98bb29bfeab2784 (diff)
mtag in pf_route is now only used for IPSEC, so #ifdef it
From: Mike Belopuhov <mkb@crypt.org.ru>
-rw-r--r--sys/net/pf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index bcdf94ff350..57adac4871a 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.504 2005/10/17 08:43:35 henning Exp $ */
+/* $OpenBSD: pf.c,v 1.505 2005/10/25 11:19:35 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -5335,7 +5335,6 @@ pf_route(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp,
struct pf_state *s, struct pf_pdesc *pd)
{
struct mbuf *m0, *m1;
- struct m_tag *mtag;
struct route iproute;
struct route *ro;
struct sockaddr_in *dst;
@@ -5344,6 +5343,9 @@ pf_route(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp,
struct pf_addr naddr;
struct pf_src_node *sn = NULL;
int error = 0;
+#ifdef IPSEC
+ struct m_tag *mtag;
+#endif /* IPSEC */
if (m == NULL || *m == NULL || r == NULL ||
(dir != PF_IN && dir != PF_OUT) || oifp == NULL)