summaryrefslogtreecommitdiff
path: root/source3/include/interfaces.h
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include/interfaces.h')
-rw-r--r--source3/include/interfaces.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/source3/include/interfaces.h b/source3/include/interfaces.h
index 3b786f1ebc..371f64292f 100644
--- a/source3/include/interfaces.h
+++ b/source3/include/interfaces.h
@@ -7,6 +7,17 @@
struct iface_struct {
char name[16];
- struct in_addr ip;
- struct in_addr netmask;
+ sa_family_t sa_family;
+ union {
+ struct in_addr ip;
+#ifdef AF_INET6
+ struct in6_addr ip6;
+#endif
+ } iface_addr;
+ union {
+ struct in_addr netmask;
+#ifdef AF_INET6
+ struct in6_addr netmask6;
+#endif
+ } iface_netmask;
};