diff options
| author | Roy Marples <roy@marples.name> | 2017-12-07 17:01:39 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2017-12-07 17:01:39 +0000 |
| commit | b86b4ac47fa09edafa6ce3c009751557fe1a6138 (patch) | |
| tree | f24378f908a0b6a9be1f937cb63319a6a2842d83 /src/if.h | |
| parent | 1394cd9a65be98a3afb278f6d523dc262a721334 (diff) | |
| download | dhcpcd-b86b4ac47fa09edafa6ce3c009751557fe1a6138.tar.xz | |
dhcp6: don't listen on IPv6 addresses when not using DHCP6
To achieve this we need to learn the addresses AFTER the interface
configuration has been loaded.
Diffstat (limited to 'src/if.h')
| -rw-r--r-- | src/if.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -35,6 +35,8 @@ #include <netinet/in_var.h> /* for IN_IFF_TENTATIVE et all */ #endif +#include <ifaddrs.h> + /* Some systems have in-built IPv4 DAD. * However, we need them to do DAD at carrier up as well. */ #ifdef IN_IFF_TENTATIVE @@ -112,7 +114,9 @@ int if_getifaddrs(struct ifaddrs **); int if_setflag(struct interface *ifp, short flag); #define if_up(ifp) if_setflag((ifp), (IFF_UP | IFF_RUNNING)) bool if_valid_hwaddr(const uint8_t *, size_t); -struct if_head *if_discover(struct dhcpcd_ctx *, int, char * const *); +struct if_head *if_discover(struct dhcpcd_ctx *, struct ifaddrs **, + int, char * const *); +void if_learnaddrs(struct dhcpcd_ctx *, struct if_head *, struct ifaddrs **); struct interface *if_find(struct if_head *, const char *); struct interface *if_findindex(struct if_head *, unsigned int); struct interface *if_loopback(struct dhcpcd_ctx *); |
