Author: tuexen
Date: Fri Feb 10 19:49:35 2012
New Revision: 231414
URL: http://svn.freebsd.org/changeset/base/231414
Log:
MFC r218393:
If not set (due to some error Michael is working on
fixing) set it for the net.
From rrs@.
Modified:
stable/8/sys/netinet/sctp_output.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/boot/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/e1000/ (props changed)
Modified: stable/8/sys/netinet/sctp_output.c
==============================================================================
--- stable/8/sys/netinet/sctp_output.c Fri Feb 10 19:47:15 2012
(r231413)
+++ stable/8/sys/netinet/sctp_output.c Fri Feb 10 19:49:35 2012
(r231414)
@@ -3485,6 +3485,12 @@ sctp_lowlevel_chunk_output(struct sctp_i
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_i
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 {
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"