svn commit: r301244 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Fri Jun 3 07:24:43 UTC 2016
Author: tuexen
Date: Fri Jun 3 07:24:41 2016
New Revision: 301244
URL: https://svnweb.freebsd.org/changeset/base/301244
Log:
Store the peers vtag in host byte order in the cookie, since all
consumers expect it that way.
This fixes the vtag when sending en ERROR chunk.
MFC after: 1 week
Modified:
head/sys/netinet/sctp_output.c
Modified: head/sys/netinet/sctp_output.c
==============================================================================
--- head/sys/netinet/sctp_output.c Fri Jun 3 07:00:28 2016 (r301243)
+++ head/sys/netinet/sctp_output.c Fri Jun 3 07:24:41 2016 (r301244)
@@ -5828,7 +5828,7 @@ do_a_abort:
/* Now lets put the SCTP header in place */
initack = mtod(m, struct sctp_init_ack_chunk *);
/* Save it off for quick ref */
- stc.peers_vtag = init_chk->init.initiate_tag;
+ stc.peers_vtag = ntohl(init_chk->init.initiate_tag);
/* who are we */
memcpy(stc.identification, SCTP_VERSION_STRING,
min(strlen(SCTP_VERSION_STRING), sizeof(stc.identification)));
More information about the svn-src-head
mailing list