diff options
| author | Roy Marples <roy@marples.name> | 2015-02-28 17:41:24 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2015-02-28 17:41:24 +0000 |
| commit | 44b367ba8c4f5cabfb3350cd5e820ec7dfcc0b93 (patch) | |
| tree | ca8b309fe80ed13928c3a79a0afd4069c5558c7f /if.h | |
| parent | 809b5bb99364e08e2c88197682fce483bd1ffb85 (diff) | |
| download | dhcpcd-44b367ba8c4f5cabfb3350cd5e820ec7dfcc0b93.tar.xz | |
Fix IPv6 routing on OpenBSD and document includes and defines better.
Diffstat (limited to 'if.h')
| -rw-r--r-- | if.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -28,10 +28,10 @@ #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 */ |
