diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2008-09-07 20:44:45 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2008-09-07 20:44:45 +0000 |
| commit | 00db174bc2cdb6c4240fbdf91e8af0308712bc1e (patch) | |
| tree | cabdffa2fcc20b04fa2fa3e781fdd1aeb79eed66 | |
| parent | bbe9d8cba9bdf0eeda8651b384edfb87592d3707 (diff) | |
Notes
| -rw-r--r-- | sys/netinet/tcp_debug.c | 2 | ||||
| -rw-r--r-- | sys/netinet/tcp_subr.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_debug.c b/sys/netinet/tcp_debug.c index aaeac9dfaf62..a82943d75832 100644 --- a/sys/netinet/tcp_debug.c +++ b/sys/netinet/tcp_debug.c @@ -171,7 +171,7 @@ tcp_trace(short act, short ostate, struct tcpcb *tp, void *ipgen, ack = th->th_ack; len = #ifdef INET6 - isipv6 ? ((struct ip6_hdr *)ipgen)->ip6_plen : + isipv6 ? ntohs(((struct ip6_hdr *)ipgen)->ip6_plen) : #endif ((struct ip *)ipgen)->ip_len; if (act == TA_OUTPUT) { diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 1d24991b3543..f349ecc8e7c5 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -381,7 +381,7 @@ tcpip_fillheaders(struct inpcb *inp, void *ip_ptr, void *tcp_ptr) ip6->ip6_vfc = (ip6->ip6_vfc & ~IPV6_VERSION_MASK) | (IPV6_VERSION & IPV6_VERSION_MASK); ip6->ip6_nxt = IPPROTO_TCP; - ip6->ip6_plen = sizeof(struct tcphdr); + ip6->ip6_plen = htons(sizeof(struct tcphdr)); ip6->ip6_src = inp->in6p_laddr; ip6->ip6_dst = inp->in6p_faddr; } else |
