diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2015-10-08 11:36:52 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2015-10-08 11:36:52 +0000 |
commit | 54980deb1ff7d4f2c44cd795293afa8b2ef55b69 (patch) | |
tree | c6a2eb6d9e1430d6aede6d565d407d372cc3816d /sys/net/pf.c | |
parent | 9081700872f356202a8617b0d1661980d18c0161 (diff) |
use the state id to set a flowid on an mbuf.
ok mpi@ mikeb@ sthen@
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r-- | sys/net/pf.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 50dd87e6e13..bc5cc6a9c34 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.945 2015/09/23 08:49:46 mpi Exp $ */ +/* $OpenBSD: pf.c,v 1.946 2015/10/08 11:36:51 dlg Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -6537,6 +6537,11 @@ done: s->key[PF_SK_STACK]->inp = pd.m->m_pkthdr.pf.inp; } + if (s) { + pd.m->m_pkthdr.flowid = M_FLOWID_VALID | + (M_FLOWID_MASK & bemtoh64(&s->id)); + } + /* * connections redirected to loopback should not match sockets * bound specifically to loopback due to security implications, |