Date: Fri, 3 Jun 2016 07:24:42 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r301244 - head/sys/netinet Message-ID: <201606030724.u537OgmD091137@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606030724.u537OgmD091137>