summaryrefslogtreecommitdiffstats
path: root/if.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-05-01 09:41:54 +0000
committerRoy Marples <roy@marples.name>2015-05-01 09:41:54 +0000
commitd686aa4f7d4a3cbdc58a27633a65e66abbbde9c0 (patch)
treea56bea469128d9d548a37bb0cf32c0cd4f3a5d8b /if.h
parent741b689fd2206fd4f1ae9424a5b16a53070de0fb (diff)
downloaddhcpcd-d686aa4f7d4a3cbdc58a27633a65e66abbbde9c0.tar.xz
Support IN_IFF_TENTATIVE and IN_IFF_DUPLICATED on NetBSD.
Diffstat (limited to 'if.h')
-rw-r--r--if.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/if.h b/if.h
index 4efc6364..8330ad75 100644
--- a/if.h
+++ b/if.h
@@ -31,6 +31,9 @@
#include <net/if.h>
#include <net/route.h> /* for RTM_ADD et all */
#include <netinet/in.h>
+#ifdef BSD
+#include <netinet/in_var.h> /* for IN_IFF_TENTATIVE et all */
+#endif
/* Some systems have route metrics.
* OpenBSD route priority is not this. */
@@ -125,6 +128,8 @@ int if_address(const struct interface *,
#define if_deladdress(ifp, addr, net) \
if_address(ifp, addr, net, NULL, -1)
+int if_addrflags(const struct in_addr *, const struct interface *);
+
int if_route(unsigned char, const struct rt *rt);
int if_initrt(struct interface *);
#endif