]> The Tcpdump Group git mirrors - tcpdump/blobdiff - interface.h
Default to first interface from pcap_findalldevs()
[tcpdump] / interface.h
index 923437888021cf3d251c68b6f3b1ea9b98b96b66..01de9ea293d9ead8050f8d5879f8b447f2bdb5b2 100644 (file)
@@ -65,21 +65,10 @@ extern char *strdup(const char *);
 extern char *strsep(char **, const char *);
 #endif
 
-#define ESRC(ep) ((ep)->ether_shost)
-#define EDST(ep) ((ep)->ether_dhost)
-
-#ifndef NTOHL
-#define NTOHL(x)       (x) = ntohl(x)
-#define NTOHS(x)       (x) = ntohs(x)
-#define HTONL(x)       (x) = htonl(x)
-#define HTONS(x)       (x) = htons(x)
-#endif
 #endif
 
 extern char *program_name;     /* used to generate self-identifying messages */
 
-extern int32_t thiszone;       /* seconds offset from gmt to local time */
-
 extern void error(const char *, ...)
      __attribute__((noreturn))
 #ifdef __ATTRIBUTE___FORMAT_OK
@@ -95,8 +84,6 @@ extern void warning(const char *, ...)
 extern char *read_infile(char *);
 extern char *copy_argv(char **);
 
-/* The printer routines. */
-
 #include <pcap.h>
 
 #ifndef HAVE_BPF_DUMP
@@ -105,5 +92,3 @@ struct bpf_program;
 extern void bpf_dump(const struct bpf_program *, int);
 
 #endif
-
-#include "netdissect.h"