diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-09-22 21:28:11 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-22 21:28:11 -0700 |
commit | 0b815a1a6d43ab498674b8430c8c35ab08487a16 (patch) | |
tree | 18ea2e50f36c1d38127c535f619e80209bfc4e07 /include/linux/if_link.h | |
parent | 83bfba5fca16d040bb78a24148da844db3de6a76 (diff) | |
download | linux-3.10-0b815a1a6d43ab498674b8430c8c35ab08487a16.tar.gz linux-3.10-0b815a1a6d43ab498674b8430c8c35ab08487a16.tar.bz2 linux-3.10-0b815a1a6d43ab498674b8430c8c35ab08487a16.zip |
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>
Diffstat (limited to 'include/linux/if_link.h')
-rw-r--r-- | include/linux/if_link.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/if_link.h b/include/linux/if_link.h index 84c3492ae5c..f9032c88716 100644 --- a/include/linux/if_link.h +++ b/include/linux/if_link.h @@ -79,6 +79,7 @@ enum IFLA_LINKINFO, #define IFLA_LINKINFO IFLA_LINKINFO IFLA_NET_NS_PID, + IFLA_IFALIAS, __IFLA_MAX }; |