summaryrefslogtreecommitdiffstats
path: root/if.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-05-01 09:53:45 +0000
committerRoy Marples <roy@marples.name>2015-05-01 09:53:45 +0000
commitbee534494cdd5891de0aee4e62500437cc3e3af2 (patch)
tree44b547f91c3820d7cfe51a0b1cf6995e15541cb0 /if.h
parent45e3b2fe7c83fa4d7b0542e1719430be8e1c0008 (diff)
downloaddhcpcd-bee534494cdd5891de0aee4e62500437cc3e3af2.tar.xz
Add initial support for keeping addresses at carrier down for supported platforms.
Diffstat (limited to 'if.h')
-rw-r--r--if.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/if.h b/if.h
index 8330ad75..e4f31eb6 100644
--- a/if.h
+++ b/if.h
@@ -43,6 +43,14 @@
# endif
#endif
+/* Some systems have in-built IPv4 DAD.
+ * However, we need them to do DAD at carrier up as well. */
+#ifdef IN_IFF_TENTATIVE
+# ifdef __NetBSD__
+# define NOCARRIER_PRESERVE_IP
+# endif
+#endif
+
#include "config.h"
#include "dhcpcd.h"
#include "ipv4.h"