If not set (due to some error Michael is working on

fixing) set it for the net.

MFC after:	3 months
This commit is contained in:
Randall Stewart 2011-02-07 08:12:24 +00:00
parent 73403d4141
commit f8140f7291
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218393

View File

@ -3485,6 +3485,12 @@ sctp_lowlevel_chunk_output(struct sctp_inpcb *inp,
SCTP_BUF_NEXT(newm) = m;
m = newm;
if (net != NULL) {
if (net->flowidset == 0) {
net->flowid = stcb->asoc.my_vtag ^
ntohs(stcb->rport) ^
ntohs(stcb->sctp_ep->sctp_lport);
net->flowidset = 1;
}
m->m_pkthdr.flowid = net->flowid;
m->m_flags |= M_FLOWID;
} else {
@ -3815,6 +3821,12 @@ sctp_lowlevel_chunk_output(struct sctp_inpcb *inp,
SCTP_BUF_NEXT(newm) = m;
m = newm;
if (net != NULL) {
if (net->flowidset == 0) {
net->flowid = stcb->asoc.my_vtag ^
ntohs(stcb->rport) ^
ntohs(stcb->sctp_ep->sctp_lport);
net->flowidset = 1;
}
m->m_pkthdr.flowid = net->flowid;
m->m_flags |= M_FLOWID;
} else {