aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAndre Oppermann <andre@FreeBSD.org>2005-09-10 07:43:29 +0000
committerAndre Oppermann <andre@FreeBSD.org>2005-09-10 07:43:29 +0000
commitffabe3dce88027ddf00a5a59236dea6cbc54f7df (patch)
tree8fe23008183279e179cfa3fc99933a2818b21aab /sys
parentdf7eabb0596bf01ee6e996a1f5cfcfb5a4e4c15c (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/tcp_subr.c5
-rw-r--r--sys/netinet/tcp_timewait.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index b2f34c1b806b4..f8b07072ad0d1 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1170,10 +1170,11 @@ tcp_ctlinput(cmd, sa, vip)
/*
* If no alternative MTU was
* proposed, try the next smaller
- * one.
+ * one. ip->ip_len has already
+ * been swapped in icmp_input().
*/
if (!mtu)
- mtu = ip_next_mtu(ntohs(ip->ip_len),
+ mtu = ip_next_mtu(ip->ip_len,
1);
if (mtu < max(296, (tcp_minmss)
+ sizeof(struct tcpiphdr)))
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c
index b2f34c1b806b4..f8b07072ad0d1 100644
--- a/sys/netinet/tcp_timewait.c
+++ b/sys/netinet/tcp_timewait.c
@@ -1170,10 +1170,11 @@ tcp_ctlinput(cmd, sa, vip)
/*
* If no alternative MTU was
* proposed, try the next smaller
- * one.
+ * one. ip->ip_len has already
+ * been swapped in icmp_input().
*/
if (!mtu)
- mtu = ip_next_mtu(ntohs(ip->ip_len),
+ mtu = ip_next_mtu(ip->ip_len,
1);
if (mtu < max(296, (tcp_minmss)
+ sizeof(struct tcpiphdr)))