aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-util.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-07-18 18:47:44 +0000
committerGuy Harris <guy@alum.mit.edu>2004-07-18 18:47:44 +0000
commit2aec055c79298028710da18201d0cdb5a40a504d (patch)
treec248415cbeed737974d41aef46cc5190b1f5ec3d /pcap-util.h
parent669db206cb1f270046ad400fff7655e20c63e723 (diff)
downloadwireshark-2aec055c79298028710da18201d0cdb5a40a504d.tar.gz
wireshark-2aec055c79298028710da18201d0cdb5a40a504d.tar.bz2
wireshark-2aec055c79298028710da18201d0cdb5a40a504d.zip
Add support for IPv6 addresses for interfaces.
svn path=/trunk/; revision=11411
Diffstat (limited to 'pcap-util.h')
-rw-r--r--pcap-util.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/pcap-util.h b/pcap-util.h
index 7f864fd470..3a7ffc6652 100644
--- a/pcap-util.h
+++ b/pcap-util.h
@@ -50,10 +50,26 @@ extern "C" {
typedef struct {
char *name;
char *description;
- GSList *ip_addr; /* containing guint32 values */
- gboolean loopback;
+ GSList *ip_addr; /* containing address values */
+ gboolean loopback;
} if_info_t;
+/*
+ * An address in the "ip_addr" list.
+ */
+typedef enum {
+ FAM_IPv4,
+ FAM_IPv6
+} address_family;
+
+typedef struct {
+ address_family family;
+ union {
+ guint32 ip4_addr;
+ guint8 ip6_addr[16];
+ } ip_addr;
+} if_addr_t;
+
GList *get_interface_list(int *err, char *err_str);
/* Error values from "get_interface_list()". */