summaryrefslogtreecommitdiffstats
path: root/include/netlink
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2010-11-11 12:57:10 (GMT)
committerThomas Graf <tgraf@suug.ch>2010-11-11 12:57:10 (GMT)
commit8970c5cde659d76dc10cda00bb6823b6f34d9c30 (patch)
tree79b64bc28d25c16bfc1235d8efbebabdb4a24209 /include/netlink
parent59880cb01e0609f64bf004f8226541646b652cec (diff)
downloadlibnl-8970c5cde659d76dc10cda00bb6823b6f34d9c30.zip
libnl-8970c5cde659d76dc10cda00bb6823b6f34d9c30.tar.gz
libnl-8970c5cde659d76dc10cda00bb6823b6f34d9c30.tar.bz2
link: Support IFLA_IFALIAS attribute
- parse IFLA_IFALIAS if available - provides API to access/change ifalias rtnl_link_get_ifalias(link) rtnl_link_set_ifalias(link, alias) - extends nl-link-set to test functionality
Diffstat (limited to 'include/netlink')
-rw-r--r--include/netlink/cli/link.h3
-rw-r--r--include/netlink/route/link.h5
2 files changed, 6 insertions, 2 deletions
diff --git a/include/netlink/cli/link.h b/include/netlink/cli/link.h
index c404019..7fe4972 100644
--- a/include/netlink/cli/link.h
+++ b/include/netlink/cli/link.h
@@ -6,7 +6,7 @@
* License as published by the Free Software Foundation version 2.1
* of the License.
*
- * Copyright (c) 2008-2009 Thomas Graf <tgraf@suug.ch>
+ * Copyright (c) 2008-2010 Thomas Graf <tgraf@suug.ch>
*/
#ifndef __NETLINK_CLI_LINK_H_
@@ -26,5 +26,6 @@ extern void nl_cli_link_parse_mtu(struct rtnl_link *, char *);
extern void nl_cli_link_parse_ifindex(struct rtnl_link *, char *);
extern void nl_cli_link_parse_txqlen(struct rtnl_link *, char *);
extern void nl_cli_link_parse_weight(struct rtnl_link *, char *);
+extern void nl_cli_link_parse_ifalias(struct rtnl_link *, char *);
#endif
diff --git a/include/netlink/route/link.h b/include/netlink/route/link.h
index 2d410ec..ed1f4d6 100644
--- a/include/netlink/route/link.h
+++ b/include/netlink/route/link.h
@@ -6,7 +6,7 @@
* License as published by the Free Software Foundation version 2.1
* of the License.
*
- * Copyright (c) 2003-2008 Thomas Graf <tgraf@suug.ch>
+ * Copyright (c) 2003-2010 Thomas Graf <tgraf@suug.ch>
*/
#ifndef NETLINK_LINK_H_
@@ -133,6 +133,9 @@ extern uint8_t rtnl_link_get_operstate(struct rtnl_link *);
extern void rtnl_link_set_linkmode(struct rtnl_link *, uint8_t);
extern uint8_t rtnl_link_get_linkmode(struct rtnl_link *);
+extern const char * rtnl_link_get_ifalias(struct rtnl_link *);
+extern void rtnl_link_set_ifalias(struct rtnl_link *, const char *);
+
extern uint64_t rtnl_link_get_stat(struct rtnl_link *, int);
extern int rtnl_link_set_info_type(struct rtnl_link *, const char *);