cope with cases when maxmtu == 0 (this shoulnd't happen!)
This commit is contained in:
parent
4d304073f1
commit
fb6078474d
|
@ -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 @@ struct nd_ifinfo {
|
|||
#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
|
||||
|
||||
|
|
Loading…
Reference in New Issue