summaryrefslogtreecommitdiff
path: root/sys/net/pipex.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2012-01-31 12:04:21 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2012-01-31 12:04:21 +0000
commit5aefb912acd193138dc8ef28422e4e8e649fe06c (patch)
treeb9cf8c2f0e48b4efdd911212850f8e139342f202 /sys/net/pipex.c
parentf05e792ca0436b349b327306c4704f03e8ae85df (diff)
add missing calls to pf_pkt_addr_changed(); ok henning@
Diffstat (limited to 'sys/net/pipex.c')
-rw-r--r--sys/net/pipex.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/net/pipex.c b/sys/net/pipex.c
index c83aaa350f6..8573eff23f4 100644
--- a/sys/net/pipex.c
+++ b/sys/net/pipex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pipex.c,v 1.25 2012/01/23 03:36:21 yasuoka Exp $ */
+/* $OpenBSD: pipex.c,v 1.26 2012/01/31 12:04:20 markus Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
@@ -54,6 +54,11 @@
#include <net/ppp_defs.h>
#include <net/ppp-comp.h>
+#include "pf.h"
+#if NPF > 0
+#include <net/pfvar.h>
+#endif
+
#include "bpfilter.h"
#if NBPFILTER > 0
#include <sys/time.h>
@@ -1227,6 +1232,10 @@ pipex_ip6_input(struct mbuf *m0, struct pipex_session *session)
* We may use PMTUD in IPv6....
*/
+#if NPF > 0
+ pf_pkt_addr_changed(m0);
+#endif
+
len = m0->m_pkthdr.len;
#if NBPFILTER > 0
@@ -1509,6 +1518,9 @@ pipex_pptp_output(struct mbuf *m0, struct pipex_session *session,
ip->ip_src = session->local.sin4.sin_addr;
ip->ip_dst = session->peer.sin4.sin_addr;
+#if NPF > 0
+ pf_pkt_addr_changed(m0);
+#endif
/* setup gre(ver1) header information */
gre = PIPEX_SEEK_NEXTHDR(ip, sizeof(struct ip),
@@ -1957,6 +1969,9 @@ pipex_l2tp_output(struct mbuf *m0, struct pipex_session *session)
udp->uh_ulen = htons(plen);
m0->m_pkthdr.rcvif = session->pipex_iface->ifnet_this;
+#if NPF > 0
+ pf_pkt_addr_changed(m0);
+#endif
switch (session->peer.sin6.sin6_family) {
case AF_INET:
ip = mtod(m0, struct ip *);