File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636#include "config.h"
3737#include "if.h"
3838
39- #ifndef __linux__
40- #if !defined(__QNX__ ) && !defined(__sun )
41- #include <sys/endian.h>
42- #endif
39+ #ifdef BSD
4340#include <net/if.h>
44- #ifndef __sun
4541#include <netinet6/in6_var.h>
42+
43+ /*
44+ * BSD kernels don't inform userland of DAD results.
45+ * See the discussion here:
46+ * http://mail-index.netbsd.org/tech-net/2013/03/15/msg004019.html
47+ */
48+ #define IPV6_POLLADDRFLAG
49+
50+ /* This was fixed in NetBSD */
51+ #if (defined(__DragonFly_version ) && __DragonFly_version >= 500704 ) || \
52+ (defined(__NetBSD_Version__ ) && __NetBSD_Version__ >= 699002000 )
53+ #undef IPV6_POLLADDRFLAG
4654#endif
4755#endif
4856
100108 }
101109#endif
102110
103- /*
104- * BSD kernels don't inform userland of DAD results.
105- * See the discussion here:
106- * http://mail-index.netbsd.org/tech-net/2013/03/15/msg004019.html
107- */
108- #ifndef __linux__
109- /* We guard here to avoid breaking a compile on linux ppc-64 headers */
110- #include <sys/param.h>
111- #endif
112- #ifdef BSD
113- #define IPV6_POLLADDRFLAG
114- #endif
115-
116- /* This was fixed in NetBSD */
117- #if (defined(__DragonFly_version ) && __DragonFly_version >= 500704 ) || \
118- (defined(__NetBSD_Version__ ) && __NetBSD_Version__ >= 699002000 )
119- #undef IPV6_POLLADDRFLAG
120- #endif
121-
122111/* Of course OpenBSD has their own special name. */
123112#if !defined(IN6_IFF_TEMPORARY ) && defined(IN6_IFF_PRIVACY )
124113#define IN6_IFF_TEMPORARY IN6_IFF_PRIVACY
You can’t perform that action at this time.
0 commit comments