Deleted Added
full compact
nd6.h (139826) nd6.h (151474)
1/* $FreeBSD: head/sys/netinet6/nd6.h 139826 2005-01-07 02:30:35Z imp $ */
1/* $FreeBSD: head/sys/netinet6/nd6.h 151474 2005-10-19 16:20:18Z suz $ */
2/* $KAME: nd6.h,v 1.76 2001/12/18 02:10:31 itojun Exp $ */
3
4/*-
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 73 unchanged lines hidden (view full) ---

83 /* the following 3 members are for privacy extension for addrconf */
84 u_int8_t randomseed0[8]; /* upper 64 bits of MD5 digest */
85 u_int8_t randomseed1[8]; /* lower 64 bits (usually the EUI64 IFID) */
86 u_int8_t randomid[8]; /* current random ID */
87};
88
89#define ND6_IFF_PERFORMNUD 0x1
90#define ND6_IFF_ACCEPT_RTADV 0x2
2/* $KAME: nd6.h,v 1.76 2001/12/18 02:10:31 itojun Exp $ */
3
4/*-
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 73 unchanged lines hidden (view full) ---

83 /* the following 3 members are for privacy extension for addrconf */
84 u_int8_t randomseed0[8]; /* upper 64 bits of MD5 digest */
85 u_int8_t randomseed1[8]; /* lower 64 bits (usually the EUI64 IFID) */
86 u_int8_t randomid[8]; /* current random ID */
87};
88
89#define ND6_IFF_PERFORMNUD 0x1
90#define ND6_IFF_ACCEPT_RTADV 0x2
91#define ND6_IFF_PREFER_SOURCE 0x4 /* XXX: not related to ND. */
92#define ND6_IFF_IFDISABLED 0x8 /* IPv6 operation is disabled due to
93 * DAD failure. (XXX: not ND-specific)
94 */
91
92#ifdef _KERNEL
93#define ND_IFINFO(ifp) \
94 (((struct in6_ifextra *)(ifp)->if_afdata[AF_INET6])->nd_ifinfo)
95#define IN6_LINKMTU(ifp) \
96 ((ND_IFINFO(ifp)->linkmtu && ND_IFINFO(ifp)->linkmtu < (ifp)->if_mtu) \
97 ? ND_IFINFO(ifp)->linkmtu \
98 : ((ND_IFINFO(ifp)->maxmtu && ND_IFINFO(ifp)->maxmtu < (ifp)->if_mtu) \

--- 327 unchanged lines hidden ---
95
96#ifdef _KERNEL
97#define ND_IFINFO(ifp) \
98 (((struct in6_ifextra *)(ifp)->if_afdata[AF_INET6])->nd_ifinfo)
99#define IN6_LINKMTU(ifp) \
100 ((ND_IFINFO(ifp)->linkmtu && ND_IFINFO(ifp)->linkmtu < (ifp)->if_mtu) \
101 ? ND_IFINFO(ifp)->linkmtu \
102 : ((ND_IFINFO(ifp)->maxmtu && ND_IFINFO(ifp)->maxmtu < (ifp)->if_mtu) \

--- 327 unchanged lines hidden ---