summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_gre.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2009-06-02 17:10:24 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2009-06-02 17:10:24 +0000
commit8a695611f6f56d2cb8adf2bff424e36a79473c36 (patch)
treebf1e638d2df05ec1958f4fcbbc40cacca644f948 /sys/netinet/ip_gre.c
parent77c63848011481051cee3a246e6a263e4a133e68 (diff)
do the pf_pkt_addr_changed(m) magic just like gif etc
tested by Manuel Rodriguez Morales <marodriguez at grupogdt.com>
Diffstat (limited to 'sys/netinet/ip_gre.c')
-rw-r--r--sys/netinet/ip_gre.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/netinet/ip_gre.c b/sys/netinet/ip_gre.c
index b3917e881f5..886706ab10f 100644
--- a/sys/netinet/ip_gre.c
+++ b/sys/netinet/ip_gre.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_gre.c,v 1.32 2008/06/26 05:42:20 ray Exp $ */
+/* $OpenBSD: ip_gre.c,v 1.33 2009/06/02 17:10:23 henning Exp $ */
/* $NetBSD: ip_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */
/*
@@ -69,6 +69,11 @@
#endif
#include "bpfilter.h"
+#include "pf.h"
+
+#if NPF > 0
+#include <net/pfvar.h>
+#endif
/* Needs IP headers. */
#include <net/if_gre.h>
@@ -188,6 +193,9 @@ gre_input2(m , hlen, proto)
if (sc->sc_if.if_bpf)
bpf_mtap_af(sc->sc_if.if_bpf, af, m, BPF_DIRECTION_IN);
#endif
+#if NPF > 0
+ pf_pkt_addr_changed(m);
+#endif
s = splnet(); /* possible */
IF_INPUT_ENQUEUE(ifq, m);