]> git.baikalelectronics.ru Git - kernel.git/commit
net: network device name ifalias support
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 23 Sep 2008 04:28:11 +0000 (21:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Sep 2008 04:28:11 +0000 (21:28 -0700)
commit9123bc6a0fcc6e5765052925a3257343f1cba355
tree18ea2e50f36c1d38127c535f619e80209bfc4e07
parent6932bf76dc0dd11f328810431aa8c9404ca2c56b
net: network device name ifalias support

This patch add support for keeping an additional character alias
associated with an network interface. This is useful for maintaining
the SNMP ifAlias value which is a user defined value. Routers use this
to hold information like which circuit or line it is connected to. It
is just an arbitrary text label on the network device.

There are two exposed interfaces with this patch, the value can be
read/written either via netlink or sysfs.

This could be maintained just by the snmp daemon, but it is more
generally useful for other management tools, and the kernel is good
place to act as an agreed upon interface to store it.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if.h
include/linux/if_link.h
include/linux/netdevice.h
net/core/dev.c
net/core/net-sysfs.c
net/core/rtnetlink.c