summaryrefslogtreecommitdiffstats
path: root/if.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-05-21 23:07:52 +0000
committerRoy Marples <roy@marples.name>2014-05-21 23:07:52 +0000
commit26c177737ee4c0c6dbe0bd33208a25574073c4b1 (patch)
tree940f22ddb6a2e870bbdb91f2ac9ec67827eb203b /if.c
parentd8cb89586bb3eb504a0ba71177731e1f4aeb538b (diff)
downloaddhcpcd-26c177737ee4c0c6dbe0bd33208a25574073c4b1.tar.xz
Source now compiles on Solaris, just missing the if-sun.c support so
linking fails.
Diffstat (limited to 'if.c')
-rw-r--r--if.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/if.c b/if.c
index add301ea..0aad1f6b 100644
--- a/if.c
+++ b/if.c
@@ -341,15 +341,23 @@ if_discover(struct dhcpcd_ctx *ctx, int argc, char * const *argv)
ifp->index = sdl->sdl_index;
sdl_type = sdl->sdl_type;
switch(sdl->sdl_type) {
+#ifdef IFT_BRIDGE
case IFT_BRIDGE: /* FALLTHROUGH */
+#endif
+#ifdef IFT_L2VLAN
case IFT_L2VLAN: /* FALLTHOUGH */
+#endif
+#ifdef IFT_L3IPVLAN
case IFT_L3IPVLAN: /* FALLTHROUGH */
+#endif
case IFT_ETHER:
ifp->family = ARPHRD_ETHER;
break;
+#ifdef IFT_IEEE1394
case IFT_IEEE1394:
ifp->family = ARPHRD_IEEE1394;
break;
+#endif
#ifdef IFT_INFINIBAND
case IFT_INFINIBAND:
ifp->family = ARPHRD_INFINIBAND;