diff options
| author | Roy Marples <roy@marples.name> | 2016-09-16 15:49:01 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-09-16 15:49:01 +0000 |
| commit | b0601fe4165e342848c344faf2e08720db5fa271 (patch) | |
| tree | 35a23064feb1fe237cbc934fa2f0cf55c0e8f0b3 /if.h | |
| parent | ba13abcc97a2f606a2d7ea85832cd90e7a3cad06 (diff) | |
| download | dhcpcd-b0601fe4165e342848c344faf2e08720db5fa271.tar.xz | |
One BSD in the future will include address flags in ifa_msghdr.
A libc in the future will include address flags in ifaddrs.
Although this does make the code a bit more #ifdef messy, the end result
is a smaller binary, and less ioctls to make.
Diffstat (limited to 'if.h')
| -rw-r--r-- | if.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -185,7 +185,8 @@ ssize_t if_readraw(struct interface *, int, void *, size_t, int *); void if_closeraw(struct interface *, int); int if_address(unsigned char, const struct ipv4_addr *); -int if_addrflags(const struct ipv4_addr *); +int if_addrflags(const struct interface *, const struct in_addr *, + const char *); int if_route(unsigned char, const struct rt *rt); int if_initrt(struct dhcpcd_ctx *); @@ -202,7 +203,8 @@ int ip6_temp_valid_lifetime(const char *ifname); #endif int if_address6(unsigned char, const struct ipv6_addr *); -int if_addrflags6(const struct ipv6_addr *); +int if_addrflags6(const struct interface *, const struct in6_addr *, + const char *); int if_getlifetime6(struct ipv6_addr *); int if_route6(unsigned char, const struct rt6 *rt); |
