diff options
author | tuexen <tuexen@FreeBSD.org> | 2016-06-03 07:24:41 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2016-06-03 07:24:41 +0000 |
commit | 060176cb0c6e7c5df140dbe8e62382850da1f086 (patch) | |
tree | f3f1cb56dce161807b7be81600217bc6dac159af | |
parent | daa291ea42bbe023a4d5092845120f0c83b266ee (diff) | |
download | FreeBSD-src-060176cb0c6e7c5df140dbe8e62382850da1f086.zip FreeBSD-src-060176cb0c6e7c5df140dbe8e62382850da1f086.tar.gz |
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
-rw-r--r-- | sys/netinet/sctp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c index a43f871..6d71f7d 100644 --- a/sys/netinet/sctp_output.c +++ b/sys/netinet/sctp_output.c @@ -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))); |