/*
- * Copyright (c) 2000-2013 Apple Inc. All rights reserved.
+ * Copyright (c) 2000-2014 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
#if defined(PRIVATE)
#define ND6_IFF_INSECURE 0x80
#endif
+#define ND6_IFF_REPLICATED 0x100 /* sleep proxy registered */
struct in6_nbrinfo {
char ifname[IFNAMSIZ]; /* if name, e.g. "en0" */
#ifdef BSD_KERNEL_PRIVATE
#define NDPRF_PROCESSED_ONLINK 0x08000
#define NDPRF_PROCESSED_SERVICE 0x10000
+#define NDPRF_DEFUNCT 0x20000
#endif
/* protocol constants */
/*
* In a more readable form, we derive linkmtu based on:
*
- * if (ND_IFINFO(ifp) == NULL || !ND_IFINFO(ifp)->initialized)
+ * if (ifp == NULL)
+ * linkmtu = IPV6_MMTU
+ * else if (ND_IFINFO(ifp) == NULL || !ND_IFINFO(ifp)->initialized)
* linkmtu = ifp->if_mtu;
* else if (ND_IFINFO(ifp)->linkmtu && ND_IFINFO(ifp)->linkmtu < ifp->if_mtu)
* linkmtu = ND_IFINFO(ifp)->linkmtu;
* linkmtu = ifp->if_mtu;
*/
#define IN6_LINKMTU(ifp) \
- ((ND_IFINFO(ifp) == NULL || !ND_IFINFO(ifp)->initialized) ? \
+ (ifp == NULL ? IPV6_MMTU : \
+ (ND_IFINFO(ifp) == NULL || !ND_IFINFO(ifp)->initialized) ? \
(ifp)->if_mtu : ((ND_IFINFO(ifp)->linkmtu && \
ND_IFINFO(ifp)->linkmtu < (ifp)->if_mtu) ? ND_IFINFO(ifp)->linkmtu : \
((ND_IFINFO(ifp)->maxmtu && ND_IFINFO(ifp)->maxmtu < (ifp)->if_mtu) ? \
#define ND6_OPTIMISTIC_DAD_TEMPORARY (1 << 2)
#define ND6_OPTIMISTIC_DAD_DYNAMIC (1 << 3)
#define ND6_OPTIMISTIC_DAD_SECURED (1 << 4)
+#define ND6_OPTIMISTIC_DAD_MANUAL (1 << 5)
/* nd6_rtr.c */
extern int nd6_defifindex;