]> The Tcpdump Group git mirrors - tcpdump/blobdiff - util-print.c
Default to first interface from pcap_findalldevs()
[tcpdump] / util-print.c
index 469b8261c4dca9d73472c5e1b998953a82370f42..f11155ad2eb42664887546c78ae56441346ba781 100644 (file)
@@ -46,6 +46,7 @@
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
 #endif
+#include <ctype.h>
 #include <stdio.h>
 #include <stdarg.h>
 #include <stdlib.h>
@@ -524,7 +525,6 @@ mask2plen(uint32_t mask)
        return (prefix_len);
 }
 
-#ifdef INET6
 int
 mask62plen(const u_char *mask)
 {
@@ -551,7 +551,6 @@ mask62plen(const u_char *mask)
        }
        return (cidr_len);
 }
-#endif /* INET6 */
 
 /*
  * Routine to print out information for text-based protocols such as FTP,