summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2013-11-01 14:34:27 +0000
committerflorian <florian@openbsd.org>2013-11-01 14:34:27 +0000
commit7885701a13206e3be6d66edbfceedf6fdf683bcf (patch)
tree77e744c8a0357dfde5dc6543d7d0649be01b97d0 /sys
parentenable fuse. (diff)
downloadwireguard-openbsd-7885701a13206e3be6d66edbfceedf6fdf683bcf.tar.xz
wireguard-openbsd-7885701a13206e3be6d66edbfceedf6fdf683bcf.zip
Send pflow(4) packets in the correct rdomain.
From Anders Berggren (anders AT halon DOT se), thanks. OK henning, benno
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_pflow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_pflow.c b/sys/net/if_pflow.c
index a6d004c7bdf..cabad1efbe6 100644
--- a/sys/net/if_pflow.c
+++ b/sys/net/if_pflow.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pflow.c,v 1.37 2013/10/19 10:49:31 henning Exp $ */
+/* $OpenBSD: if_pflow.c,v 1.38 2013/11/01 14:34:27 florian Exp $ */
/*
* Copyright (c) 2011 Florian Obser <florian@narrans.de>
@@ -1534,6 +1534,7 @@ pflow_sendout_mbuf(struct pflow_softc *sc, struct mbuf *m)
ui->ui_ulen = htons(sizeof(struct udphdr) + len);
ui->ui_sum = 0;
m->m_pkthdr.csum_flags |= M_UDP_CSUM_OUT;
+ m->m_pkthdr.rdomain = sc->sc_if.if_rdomain;
ip = (struct ip *)ui;
ip->ip_v = IPVERSION;