diff options
| author | Roy Marples <roy@marples.name> | 2016-07-27 15:46:53 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-07-27 15:46:53 +0000 |
| commit | d2a12089d3f8d9a9f685ea30226f4aef304c87cb (patch) | |
| tree | 9e37539114aaa60796c4cb3888a802b3ab69c594 /if.h | |
| parent | 8c15388073d54f9bf85b53342269fcd0a002e805 (diff) | |
| download | dhcpcd-d2a12089d3f8d9a9f685ea30226f4aef304c87cb.tar.xz | |
Add some commentary for ALIAS_ADDR remove and unused define.
Diffstat (limited to 'if.h')
| -rw-r--r-- | if.h | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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); |
