git.samba.org
/
obnox
/
wireshark
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for IPv6 addresses for interfaces.
[obnox/wireshark/wip.git]
/
pcap-util.h
diff --git
a/pcap-util.h
b/pcap-util.h
index 7f864fd470bef756c735cae4996606d0564d7812..3a7ffc66521b7604f3e7f2f65d5ae7728d24fd9a 100644
(file)
--- a/
pcap-util.h
+++ b/
pcap-util.h
@@
-50,10
+50,26
@@
extern "C" {
typedef struct {
char *name;
char *description;
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;
} 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()". */
GList *get_interface_list(int *err, char *err_str);
/* Error values from "get_interface_list()". */