Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 cope with cases when maxmtu == 0 (this shoulnd'...
details: https://anonhg.NetBSD.org/src/rev/de59c6ce24e9
branches: trunk
changeset: 532426:de59c6ce24e9
user: itojun <itojun%NetBSD.org@localhost>
date: Fri Jun 07 02:31:04 2002 +0000
description:
cope with cases when maxmtu == 0 (this shoulnd't happen!)
diffstat:
sys/netinet6/nd6.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r aa50ac186855 -r de59c6ce24e9 sys/netinet6/nd6.h
--- a/sys/netinet6/nd6.h Fri Jun 07 02:05:22 2002 +0000
+++ b/sys/netinet6/nd6.h Fri Jun 07 02:31:04 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nd6.h,v 1.29 2002/06/05 01:10:54 itojun Exp $ */
+/* $NetBSD: nd6.h,v 1.30 2002/06/07 02:31:04 itojun Exp $ */
/* $KAME: nd6.h,v 1.93 2002/06/05 00:56:22 itojun Exp $ */
/*
@@ -100,7 +100,7 @@
#define IN6_LINKMTU(ifp) \
((ND_IFINFO(ifp)->linkmtu && ND_IFINFO(ifp)->linkmtu < (ifp)->if_mtu) \
? ND_IFINFO(ifp)->linkmtu \
- : ((ND_IFINFO(ifp)->maxmtu < (ifp)->if_mtu) \
+ : ((ND_IFINFO(ifp)->maxmtu && ND_IFINFO(ifp)->maxmtu < (ifp)->if_mtu) \
? ND_IFINFO(ifp)->maxmtu : (ifp)->if_mtu))
#endif
Home |
Main Index |
Thread Index |
Old Index