diff options
Diffstat (limited to 'capture-pcap-util.h')
-rw-r--r-- | capture-pcap-util.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/capture-pcap-util.h b/capture-pcap-util.h index 96873ed1d8..5f824135d7 100644 --- a/capture-pcap-util.h +++ b/capture-pcap-util.h @@ -35,10 +35,6 @@ extern "C" { #include <pcap.h> -/* declaration of pcap_t here, to reduce pcap dependencies */ -/*typedef struct pcap pcap_t;*/ - - /* * XXX - this is also the traditional default snapshot size in * tcpdump - but, if IPv6 is enabled, it defaults to 96, to get an @@ -49,9 +45,6 @@ extern "C" { */ #define MIN_PACKET_SIZE 68 /* minimum amount of packet data we can read */ -/* XXX - this must be optimized, removing the dependency!!! */ -#define CAPTURE_PCAP_ERRBUF_SIZE PCAP_ERRBUF_SIZE - /* * The list of interfaces returned by "get_interface_list()" is * a list of these structures. @@ -74,7 +67,7 @@ typedef struct { } ip_addr; } if_addr_t; -GList *get_interface_list(int *err, char *err_str); +GList *get_interface_list(int *err, char **err_str); /* Error values from "get_interface_list()". */ #define CANT_GET_INTERFACE_LIST 0 /* error getting list */ @@ -83,12 +76,6 @@ GList *get_interface_list(int *err, char *err_str); void free_interface_list(GList *if_list); /* - * Get an error message string for a CANT_GET_INTERFACE_LIST error from - * "get_interface_list()". - */ -gchar *cant_get_if_list_error_message(const char *err_str); - -/* * The list of data link types returned by "get_pcap_linktype_list()" is * a list of these structures. */ @@ -98,7 +85,7 @@ typedef struct { char *description; /* descriptive name from wiretap e.g. "Ethernet", NULL if unknown */ } data_link_info_t; -GList *get_pcap_linktype_list(const char *devname, char *err_buf); +GList *get_pcap_linktype_list(const char *devname, char **err_str); void free_pcap_linktype_list(GList *linktype_list); /* get/set the link type of an interface */ |