summaryrefslogtreecommitdiff
path: root/source3/include/interfaces.h
blob: 371f64292f61fe8845d6b5fd8784497bb18e7e4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* 
   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;
};