]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix IPv6 routing on OpenBSD and document includes and defines better.
authorRoy Marples <roy@marples.name>
Sat, 28 Feb 2015 17:41:24 +0000 (17:41 +0000)
committerRoy Marples <roy@marples.name>
Sat, 28 Feb 2015 17:41:24 +0000 (17:41 +0000)
if.h

diff --git a/if.h b/if.h
index 9f2aac09624f5d6f7a5dd288a5d843619437ba66..e33b7874c210518fea790605ff57c3f6fcff842a 100644 (file)
--- a/if.h
+++ b/if.h
 #ifndef INTERFACE_H
 #define INTERFACE_H
 
-#include <sys/socket.h>
+#include <sys/ioctl.h>         /* for SIOCGIFPRIORITY */
 
 #include <net/if.h>
-//#include <net/route.h>
+#include <net/route.h>         /* for RTM_ADD et all */
 #include <netinet/in.h>
 
 /* Some systems have route metrics */
@@ -100,6 +100,9 @@ int if_vimaster(const char *);
 int if_openlinksocket(void);
 int if_managelink(struct dhcpcd_ctx *);
 
+/* dhcpcd uses the same routing flags as BSD.
+ * If the platform doesn't use these flags,
+ * map them in the platform interace file. */
 #ifndef RTM_ADD
 #define RTM_ADD                0x1     /* Add Route */
 #define RTM_DELETE     0x2     /* Delete Route */