summaryrefslogtreecommitdiffstats
path: root/if.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-07-27 15:46:53 +0000
committerRoy Marples <roy@marples.name>2016-07-27 15:46:53 +0000
commitd2a12089d3f8d9a9f685ea30226f4aef304c87cb (patch)
tree9e37539114aaa60796c4cb3888a802b3ab69c594 /if.h
parent8c15388073d54f9bf85b53342269fcd0a002e805 (diff)
downloaddhcpcd-d2a12089d3f8d9a9f685ea30226f4aef304c87cb.tar.xz
Add some commentary for ALIAS_ADDR remove and unused define.
Diffstat (limited to 'if.h')
-rw-r--r--if.h11
1 files changed, 9 insertions, 2 deletions
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);