]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-enc.c
CI: Add warning exemptions for Sun C (suncc-5.15) on Solaris 10
[tcpdump] / print-enc.c
index 928b02c8870e0eb83534b2d71db45b987edbbc4c..2fd957c2f1533d9c241fae369e2997ff64f15543 100644 (file)
@@ -23,9 +23,7 @@
 
 /* \summary: OpenBSD IPsec encapsulation BPF layer printer */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include "netdissect-stdinc.h"
 
@@ -146,12 +144,12 @@ enc_if_print(netdissect_options *ndo,
        p += ENC_HDRLEN;
 
        switch (af) {
-       case BSD_AFNUM_INET:
+       case BSD_AF_INET:
                ip_print(ndo, p, length);
                break;
-       case BSD_AFNUM_INET6_BSD:
-       case BSD_AFNUM_INET6_FREEBSD:
-       case BSD_AFNUM_INET6_DARWIN:
+       case BSD_AF_INET6_BSD:
+       case BSD_AF_INET6_FREEBSD:
+       case BSD_AF_INET6_DARWIN:
                ip6_print(ndo, p, length);
                break;
        }