diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2013-11-01 14:34:28 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2013-11-01 14:34:28 +0000 |
commit | e9b9d11472f82fad6f5015fd6301394bb44bb130 (patch) | |
tree | 1ba7bff11f0cbb199d483446bd7bc07c069db9bf /sys/net/if_pflow.c | |
parent | 1527bf0cd0c3d996327d66fe2fdb2f45bd90dcdf (diff) |
Send pflow(4) packets in the correct rdomain.
From Anders Berggren (anders AT halon DOT se), thanks.
OK henning, benno
Diffstat (limited to 'sys/net/if_pflow.c')
-rw-r--r-- | sys/net/if_pflow.c | 3 |
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; |