If we don't have any of the pcap_datalink_XXX_to_YYY routines,
[obnox/wireshark/wip.git] / capture-pcap-util.h
index 5f824135d7e4c1f2dad47fedbd0fe327c6d15795..9d91387b267365a93a5a8fe16e9c17093aebd240 100644 (file)
@@ -68,10 +68,16 @@ typedef struct {
 } if_addr_t;
 
 GList *get_interface_list(int *err, char **err_str);
+#ifdef HAVE_PCAP_REMOTE
+GList *get_remote_interface_list(const char *hostname, const char *port,
+                                 int auth_type, const char *username,
+                                 const char *passwd, int *err, char **err_str);
+#endif
 
-/* Error values from "get_interface_list()". */
-#define        CANT_GET_INTERFACE_LIST 0       /* error getting list */
-#define        NO_INTERFACES_FOUND     1       /* list is empty */
+/* Error values from "get_interface_list()/capture_interface_list()". */
+#define        CANT_GET_INTERFACE_LIST 1       /* error getting list */
+#define        NO_INTERFACES_FOUND     2       /* list is empty */
+#define        CANT_RUN_DUMPCAP        3       /* problem running dumpcap */
 
 void free_interface_list(GList *if_list);
 
@@ -94,12 +100,8 @@ int get_pcap_linktype(pcap_t *pch, const char *devname);
 const char *set_pcap_linktype(pcap_t *pch, char *devname, int dlt);
 
 
-#ifdef HAVE_PCAP_DATALINK_VAL_TO_NAME
 const char *linktype_val_to_name(int dlt);
-#endif
-#ifdef HAVE_PCAP_DATALINK_NAME_TO_VAL
 int linktype_name_to_val(const char *linktype);
-#endif
 
 #ifdef __cplusplus
 }