Re: network interface *name* alias support?
From: Patrick McHardy <hidden>
Date: 2008-05-24 20:31:24
David Woodhouse wrote:
On Sat, 2008-05-24 at 10:15 +0100, James Chapman wrote:quoted
Wouldn't it be better to fix any applications that can't handle renamed devices?_Are_ there any such applications? Other than NetworkManager crapping itself when the device name is too long, I'm not aware of any.
iptraf uses device names to determine the device type:
char ifaces[][6] =
{ "lo", "eth", "sl", "ppp", "ippp", "plip", "fddi", "isdn", "dvb",
"pvc", "hdlc", "ipsec", "sbni", "tr", "wvlan", "wlan", "sm2", "sm3",
"pent", "lec", "brg", "tun", "tap", "cipcb", "tunl", "vlan", "ath",
"ra"
};
and
if (strncmp(ifname, "eth", 3) == 0)
result = LINK_ETHERNET;
else if (strncmp(ifname, "ath", 3) == 0)
result = LINK_ETHERNET;
else if (strncmp(ifname, "plip", 4) == 0)
result = LINK_PLIP;
...