diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-05-22 01:19:18 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-05-22 01:19:18 +0000 |
commit | c1d34d4be65944ad84f4239672c8f34c969d9d24 (patch) | |
tree | f97d9b262d8ec9043a6a80e1f43027b3528fe394 /capture_ifinfo.h | |
parent | 7f97cc813e4d192b714500da4dcff5d129823a5c (diff) | |
download | wireshark-c1d34d4be65944ad84f4239672c8f34c969d9d24.tar.gz |
On OS X, get the interface type from the System Configuration framework.
svn path=/trunk/; revision=49486
Diffstat (limited to 'capture_ifinfo.h')
-rw-r--r-- | capture_ifinfo.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/capture_ifinfo.h b/capture_ifinfo.h index 7802598bef..097d9e10ba 100644 --- a/capture_ifinfo.h +++ b/capture_ifinfo.h @@ -29,6 +29,18 @@ extern "C" { #endif /* __cplusplus */ +typedef enum { + IF_WIRED, + IF_AIRPCAP, + IF_PIPE, + IF_STDIN, + IF_BLUETOOTH, + IF_WIRELESS, + IF_DIALUP, + IF_USB, + IF_VIRTUAL +} interface_type; + /* * The list of interfaces returned by "get_interface_list()" is * a list of these structures. @@ -42,6 +54,7 @@ typedef struct { e.g. "Realtek PCIe GBE Family Controller", or NULL if not available */ GSList *addrs; /* containing address values of if_addr_t */ + interface_type type; /* type of interface */ gboolean loopback; /* TRUE if loopback, FALSE otherwise */ } if_info_t; @@ -103,12 +116,6 @@ void free_if_capabilities(if_capabilities_t *caps); void add_interface_to_remote_list(if_info_t *if_info); -/** - * Get the type of an interface, given its name and description. - */ -extern guint -get_interface_type(gchar *name, gchar *description); - #ifdef __cplusplus } #endif /* __cplusplus */ |