diff options
| author | Roy Marples <roy@marples.name> | 2016-05-02 01:55:50 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-05-02 01:55:50 +0000 |
| commit | 7de8947f6016216020ce25c1545c1279e0defef2 (patch) | |
| tree | 3b676d8615dffd7b58f4aa100096905f445f02e5 /if.h | |
| parent | c50bfba5ab2fc65c9a8b44c138a2603d60fdfe83 (diff) | |
| download | dhcpcd-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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 *); |
