]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Add some commentary for ALIAS_ADDR remove and unused define.
authorRoy Marples <roy@marples.name>
Wed, 27 Jul 2016 15:46:53 +0000 (15:46 +0000)
committerRoy Marples <roy@marples.name>
Wed, 27 Jul 2016 15:46:53 +0000 (15:46 +0000)
if.h

diff --git a/if.h b/if.h
index c56e4de03930c8f2034399688a4463b917cef5dc..b38b43ac26257b93d704019ca4dda9d8642d23c2 100644 (file)
--- a/if.h
+++ b/if.h
 #  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
 struct ifaddrs;
 int if_getifaddrs(struct ifaddrs **);
 #define        getifaddrs      if_getifaddrs
-#else
-#define GETIFADDRS_AFLINK
 #endif
 
 int if_setflag(struct interface *ifp, short flag);