diff options
author | Steven Barth <steven@midlink.org> | 2013-02-19 09:36:23 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-02-19 09:36:23 +0100 |
commit | 486aa750a164d41905beb61afec89268e3eb7f48 (patch) | |
tree | 0cec21957cdba8f99a4dcdeffad97c21102f4cb0 /utils.h | |
parent | 35d767f41931df99533fccd0fbf3aa844d869139 (diff) |
Only update resolv.conf if changed (avoid logspam)
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -14,6 +14,7 @@ #ifndef __NETIFD_UTILS_H #define __NETIFD_UTILS_H +#include <stdio.h> #include <libubox/list.h> #include <libubox/avl.h> #include <libubox/avl-cmp.h> @@ -109,6 +110,8 @@ int parse_ip_and_netmask(int af, const char *str, void *addr, unsigned int *netm char * format_macaddr(uint8_t *mac); +uint32_t crc32_file(FILE *fp); + #ifdef __APPLE__ #define s6_addr32 __u6_addr.__u6_addr32 #endif |