--- embedaddon/sudo/plugins/sudoers/interfaces.h 2013/07/22 10:46:12 1.1.1.3 +++ embedaddon/sudo/plugins/sudoers/interfaces.h 2014/06/15 16:12:54 1.1.1.4 @@ -36,18 +36,20 @@ union sudo_in_addr_un { * IP address and netmask pairs for checking against local interfaces. */ 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 netmask; - struct interface *next; }; +SLIST_HEAD(interface_list, interface); + /* * Prototypes for external functions. */ int get_net_ifs(char **addrinfo); void dump_interfaces(const char *); void set_interfaces(const char *); -struct interface *get_interfaces(void); +struct interface_list *get_interfaces(void); #endif /* _SUDOERS_INTERFACES_H */