diff options
author | kaiw <kaiw@FreeBSD.org> | 2014-01-20 19:38:44 +0000 |
---|---|---|
committer | kaiw <kaiw@FreeBSD.org> | 2014-01-20 19:38:44 +0000 |
commit | e9c152dbc2e572c490d3035d77f142253b674ded (patch) | |
tree | ae65253d09d5b1583a6bb647cd383e77be00e687 /sys/netinet/tcp_syncache.c | |
parent | cb3a8568bd4e3f2bf20a1c342c6957d1a568a5df (diff) | |
parent | 681dcc3c572a6831f4cb5f341c90ea4f9278bc81 (diff) | |
download | FreeBSD-src-e9c152dbc2e572c490d3035d77f142253b674ded.zip FreeBSD-src-e9c152dbc2e572c490d3035d77f142253b674ded.tar.gz |
MFH@260917.
Diffstat (limited to 'sys/netinet/tcp_syncache.c')
-rw-r--r-- | sys/netinet/tcp_syncache.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index 29d9d53..af30ad1 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -722,6 +722,16 @@ syncache_socket(struct syncache *sc, struct socket *lso, struct mbuf *m) #endif /* + * If there's an mbuf and it has a flowid, then let's initialise the + * inp with that particular flowid. + */ + if (m != NULL && m->m_flags & M_FLOWID) { + inp->inp_flags |= INP_HW_FLOWID; + inp->inp_flags &= ~INP_SW_FLOWID; + inp->inp_flowid = m->m_pkthdr.flowid; + } + + /* * Install in the reservation hash table for now, but don't yet * install a connection group since the full 4-tuple isn't yet * configured. |