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
This commit is contained in:
Michael Tuexen 2016-06-03 07:24:41 +00:00
parent 2ec2c64187
commit 565cccce37
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301244

View File

@ -5828,7 +5828,7 @@ sctp_send_initiate_ack(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
/* 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)));