diff options
author | 2013-11-15 12:18:02 +0000 | |
---|---|---|
committer | 2013-11-15 12:18:02 +0000 | |
commit | 0c54ab5ff2f7a54508ffe1feb10de27688fcc09e (patch) | |
tree | eadc087f65cb81639d1caa4b7fbafcb56adb8cd8 | |
parent | Forget socket linking on pf_pkt_addr_changed(), this fixes among other (diff) | |
download | wireguard-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.c | 4 |
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 |