Add start of IPv6 implementation. Currently most of this is avoiding
[vlendec/samba-autobuild/.git] / source3 / include / interfaces.h
index 371f64292f61fe8845d6b5fd8784497bb18e7e4a..66ea151f02e89dc47fb344a6a1bb888bdeb93576 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    This structure is used by lib/interfaces.c to return the list of network
    interfaces on the machine
 */
@@ -7,17 +7,8 @@
 
 struct iface_struct {
        char name[16];
-       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;
+       int flags;
+       struct sockaddr_storage ip;
+       struct sockaddr_storage netmask;
+       struct sockaddr_storage bcast;
 };