summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2013-11-15 12:18:02 +0000
committerhenning <henning@openbsd.org>2013-11-15 12:18:02 +0000
commit0c54ab5ff2f7a54508ffe1feb10de27688fcc09e (patch)
treeeadc087f65cb81639d1caa4b7fbafcb56adb8cd8
parentForget socket linking on pf_pkt_addr_changed(), this fixes among other (diff)
downloadwireguard-openbsd-0c54ab5ff2f7a54508ffe1feb10de27688fcc09e.tar.xz
wireguard-openbsd-0c54ab5ff2f7a54508ffe1feb10de27688fcc09e.zip
inherit the rdomain sc to pkthdr
from erik at halon dot se, ok benno phessler benno
-rw-r--r--sys/net/if_pfsync.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c
index d677f9d2e0b..b3925fabfdd 100644
--- a/sys/net/if_pfsync.c
+++ b/sys/net/if_pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pfsync.c,v 1.202 2013/10/17 16:27:41 bluhm Exp $ */
+/* $OpenBSD: if_pfsync.c,v 1.203 2013/11/15 12:18:02 henning Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -1683,6 +1683,8 @@ pfsync_sendout(void)
sc->sc_if.if_opackets++;
sc->sc_if.if_obytes += m->m_pkthdr.len;
+ m->m_pkthdr.rdomain = sc->sc_if.if_rdomain;
+
if (ip_output(m, NULL, NULL, IP_RAWOUTPUT, &sc->sc_imo, NULL) == 0)
pfsyncstats.pfsyncs_opackets++;
else