]> The Tcpdump Group git mirrors - tcpdump/blobdiff - netdissect-stdinc.h
Detect OS IPv6 support using AF_INET6 only.
[tcpdump] / netdissect-stdinc.h
index e81c90bd590b080dfb3f66ef24dfc5ae982d90b8..baf5dd8fd3a3c69cbc25d43d70734565ff0acb1e 100644 (file)
 #define inline __inline
 #endif
 
-#if defined(AF_INET6) && !defined(HAVE_OS_IPV6_SUPPORT)
-#define HAVE_OS_IPV6_SUPPORT
-#endif
-
 #ifndef INET6_ADDRSTRLEN
 #define INET6_ADDRSTRLEN 46
 #endif
@@ -319,28 +315,6 @@ typedef char *caddr_t;
   }
 #endif
 
-/*
- * If the OS doesn't define AF_INET6 and struct in6_addr:
- *
- * define AF_INET6, so we can use it internally as a "this is an
- * IPv6 address" indication;
- *
- * define struct in6_addr so that we can use it for IPv6 addresses.
- */
-#ifndef HAVE_OS_IPV6_SUPPORT
-#ifndef AF_INET6
-#define AF_INET6       24
-
-struct in6_addr {
-       union {
-               __uint8_t   __u6_addr8[16];
-               __uint16_t  __u6_addr16[8];
-               __uint32_t  __u6_addr32[4];
-       } __u6_addr;                    /* 128-bit IP6 address */
-};
-#endif
-#endif
-
 #ifndef NI_MAXHOST
 #define        NI_MAXHOST      1025
 #endif