use in6_maxmtu, not in_maxmtu, for IPv6 mss computation

This commit is contained in:
itojun 2001-07-23 15:17:58 +00:00
parent 9f36932334
commit 489df53efe
1 changed files with 9 additions and 2 deletions

View File

@ -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 @@ tcp_mss_to_advertise(ifp, af)
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: