From: Roy Marples Date: Wed, 27 Jul 2016 15:46:53 +0000 (+0000) Subject: Add some commentary for ALIAS_ADDR remove and unused define. X-Git-Tag: v6.11.2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2a12089d3f8d9a9f685ea30226f4aef304c87cb;p=thirdparty%2Fdhcpcd.git Add some commentary for ALIAS_ADDR remove and unused define. --- diff --git a/if.h b/if.h index c56e4de0..b38b43ac 100644 --- a/if.h +++ b/if.h @@ -51,6 +51,15 @@ # endif #endif +/* + * Systems which handle 1 address per alias. + * Currenly this is just Solaris. + * While Linux can do aliased addresses, it is only useful for their + * legacy ifconfig(8) tool which cannot display >1 IPv4 address + * (it can display many IPv6 addresses which makes the limitation odd). + * Linux has ip(8) which is a more feature rich tool, without the above + * restriction. + */ #ifndef ALIAS_ADDR # ifdef __sun # define ALIAS_ADDR @@ -99,8 +108,6 @@ struct ifaddrs; int if_getifaddrs(struct ifaddrs **); #define getifaddrs if_getifaddrs -#else -#define GETIFADDRS_AFLINK #endif int if_setflag(struct interface *ifp, short flag);