https://bugs.gentoo.org/875149 --- a/netstat-nat.h +++ b/netstat-nat.h @@ -64,6 +64,9 @@ void ip_addresses_add(struct _ip_addresses **list, const char *dev, const char * int ip_addresses_search(struct _ip_addresses *list, const char *ip); void ip_addresses_free(struct _ip_addresses **list); +int string_search(char *string, char *search); +int search_first_hit(char *search, char *line, char *ret); +int search_sec_hit(char *search, char *line, char *ret); #define strcopy(dst, dst_size, src) \ strncpy(dst, src, (dst_size - 1));