X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=utils.h;h=b0a7d02a7c1c71c5e6c26fb5f8be63af2a395448;hb=4a954d36788bd5fc68a641b9005dbbf988a5ef7e;hp=23795e592b5e96c591a26c2575240339d9b8169c;hpb=24f5ed4b8b6c3c6f27e84e731b7682d3a5cc29d0;p=project%2Fnetifd.git diff --git a/utils.h b/utils.h index 23795e5..b0a7d02 100644 --- a/utils.h +++ b/utils.h @@ -14,6 +14,7 @@ #ifndef __NETIFD_UTILS_H #define __NETIFD_UTILS_H +#include #include #include #include @@ -107,6 +108,7 @@ static inline int fls(int x) unsigned int parse_netmask_string(const char *str, bool v6); bool split_netmask(char *str, unsigned int *netmask, bool v6); int parse_ip_and_netmask(int af, const char *str, void *addr, unsigned int *netmask); +bool check_pid_path(int pid, const char *exe); char * format_macaddr(uint8_t *mac);