Date: Sun, 7 Sep 2008 20:44:45 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netinet tcp_debug.c tcp_subr.c Message-ID: <200809072044.m87Kitc5097667@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
bz 2008-09-07 20:44:45 UTC FreeBSD src repository Modified files: sys/netinet tcp_debug.c tcp_subr.c Log: SVN rev 182855 on 2008-09-07 20:44:45Z by bz To my reading there are no real consumers of ip6_plen (IPv6 Payload Length) as set in tcpip_fillheaders(). ip6_output() will calculate it based of the length from the mbuf packet header itself. So initialize the value in tcpip_fillheaders() in correct (network) byte order. With the above change, to my reading, all places calling tcp_trace() pass in the ip6 header via ipgen as serialized in the mbuf and with ip6_plen in network byte order. Thus convert the IPv6 payload length to host byte order before printing. MFC after: 2 months Revision Changes Path 1.30 +1 -1 src/sys/netinet/tcp_debug.c 1.315 +1 -1 src/sys/netinet/tcp_subr.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809072044.m87Kitc5097667>