summaryrefslogtreecommitdiffstats
path: root/if.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-05-02 01:55:50 +0000
committerRoy Marples <roy@marples.name>2016-05-02 01:55:50 +0000
commit7de8947f6016216020ce25c1545c1279e0defef2 (patch)
tree3b676d8615dffd7b58f4aa100096905f445f02e5 /if.h
parentc50bfba5ab2fc65c9a8b44c138a2603d60fdfe83 (diff)
downloaddhcpcd-7de8947f6016216020ce25c1545c1279e0defef2.tar.xz
Solaris does not return AF_LINK addresses in getifaddrs(3), so
link to dlpi, walk the interfaces and obtain the physical address of each interface.
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 aaf74f1d..f174ee4c 100644
--- a/if.h
+++ b/if.h
@@ -83,6 +83,14 @@
#define RAW_EOF 1 << 0
#define RAW_PARTIALCSUM 2 << 0
+#ifdef __sun
+/* platform does not supply AF_LINK with getifaddrs. */
+struct ifaddrs;
+int if_getifaddrs(struct ifaddrs **);
+#else
+#define GETIFADDRS_AFLINK
+#endif
+
int if_setflag(struct interface *ifp, short flag);
#define if_up(ifp) if_setflag((ifp), (IFF_UP | IFF_RUNNING))
struct if_head *if_discover(struct dhcpcd_ctx *, int, char * const *);