1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00
Jeremy Allison 3fbd1ae54c r25472: Fix the interfaces code to detect IPv6 interfaces, using the
new standard getifaddrs() and freeifaddrs() interfaces. Currently
we only return IPv4 af_families. Needs fixing for binds to IPv6
but this has to be careful work.
Jeremy.
(This used to be commit 327875182c9219aeba687e10aaea93546d9a70ea)
2007-10-10 12:31:06 -05:00

24 lines
401 B
C

/*
This structure is used by lib/interfaces.c to return the list of network
interfaces on the machine
*/
#define MAX_INTERFACES 128
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;
};