diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2009-06-02 17:10:24 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2009-06-02 17:10:24 +0000 |
commit | 8a695611f6f56d2cb8adf2bff424e36a79473c36 (patch) | |
tree | bf1e638d2df05ec1958f4fcbbc40cacca644f948 /sys/net/if_gre.c | |
parent | 77c63848011481051cee3a246e6a263e4a133e68 (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/net/if_gre.c')
-rw-r--r-- | sys/net/if_gre.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c index 33f48fd5626..63695536a0d 100644 --- a/sys/net/if_gre.c +++ b/sys/net/if_gre.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_gre.c,v 1.44 2008/06/26 05:42:20 ray Exp $ */ +/* $OpenBSD: if_gre.c,v 1.45 2009/06/02 17:10:23 henning Exp $ */ /* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */ /* @@ -42,6 +42,7 @@ #if NGRE > 0 #include "bpfilter.h" +#include "pf.h" #include <sys/param.h> #include <sys/proc.h> @@ -77,6 +78,10 @@ #include <net/bpf.h> #endif +#if NPF > 0 +#include <net/pfvar.h> +#endif + #include <net/if_gre.h> #ifndef GRE_RECURSION_LIMIT @@ -405,6 +410,10 @@ gre_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, ifp->if_opackets++; ifp->if_obytes += m->m_pkthdr.len; +#if NPF > 0 + pf_pkt_addr_changed(m); +#endif + /* Send it off */ error = ip_output(m, (void *)NULL, &sc->route, 0, (void *)NULL, (void *)NULL); end: |