version 1.1.1.3, 2013/07/22 10:46:12
|
version 1.1.1.4, 2014/06/15 16:12:54
|
Line 36 union sudo_in_addr_un {
|
Line 36 union sudo_in_addr_un {
|
* IP address and netmask pairs for checking against local interfaces. |
* IP address and netmask pairs for checking against local interfaces. |
*/ |
*/ |
struct interface { |
struct interface { |
int family; /* AF_INET or AF_INET6 */ | SLIST_ENTRY(interface) entries; |
| unsigned int family; /* AF_INET or AF_INET6 */ |
union sudo_in_addr_un addr; |
union sudo_in_addr_un addr; |
union sudo_in_addr_un netmask; |
union sudo_in_addr_un netmask; |
struct interface *next; |
|
}; |
}; |
|
|
|
SLIST_HEAD(interface_list, interface); |
|
|
/* |
/* |
* Prototypes for external functions. |
* Prototypes for external functions. |
*/ |
*/ |
int get_net_ifs(char **addrinfo); |
int get_net_ifs(char **addrinfo); |
void dump_interfaces(const char *); |
void dump_interfaces(const char *); |
void set_interfaces(const char *); |
void set_interfaces(const char *); |
struct interface *get_interfaces(void); | struct interface_list *get_interfaces(void); |
|
|
#endif /* _SUDOERS_INTERFACES_H */ |
#endif /* _SUDOERS_INTERFACES_H */ |