Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet use in6_maxmtu, not in_maxmtu, for IPv6 mss comp...
details: https://anonhg.NetBSD.org/src/rev/5da657f6624a
branches: trunk
changeset: 513075:5da657f6624a
user: itojun <itojun%NetBSD.org@localhost>
date: Mon Jul 23 15:17:58 2001 +0000
description:
use in6_maxmtu, not in_maxmtu, for IPv6 mss computation
diffstat:
sys/netinet/tcp_subr.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r eecd9e22a474 -r 5da657f6624a sys/netinet/tcp_subr.c
--- a/sys/netinet/tcp_subr.c Mon Jul 23 15:17:50 2001 +0000
+++ b/sys/netinet/tcp_subr.c Mon Jul 23 15:17:58 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_subr.c,v 1.112 2001/06/12 15:17:28 wiz Exp $ */
+/* $NetBSD: tcp_subr.c,v 1.113 2001/07/23 15:17:58 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -1536,7 +1536,14 @@
mss = ifp->if_mtu;
if (tcp_mss_ifmtu == 0)
- mss = max(in_maxmtu, mss);
+ switch (af) {
+ case AF_INET:
+ mss = max(in_maxmtu, mss);
+ break;
+ case AF_INET6:
+ mss = max(in6_maxmtu, mss);
+ break;
+ }
switch (af) {
case AF_INET:
Home |
Main Index |
Thread Index |
Old Index