summaryrefslogtreecommitdiffstats
path: root/include/netlink
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-12-06 11:02:54 (GMT)
committerTobias Klauser <tklauser@distanz.ch>2016-12-06 13:55:40 (GMT)
commit0c4b2ea6d17b3491b23f5ccb450176e05de75545 (patch)
tree26cd99d6fa29b8d80e70929319fcfa325631a199 /include/netlink
parent993a62d4501a9b40461d9f1276a63246268b4a3a (diff)
downloadlibnl-0c4b2ea6d17b3491b23f5ccb450176e05de75545.zip
libnl-0c4b2ea6d17b3491b23f5ccb450176e05de75545.tar.gz
libnl-0c4b2ea6d17b3491b23f5ccb450176e05de75545.tar.bz2
link: add support for IFLA_CARRIER_CHANGES
Also expose the attribute value via link_dump_details() Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'include/netlink')
-rw-r--r--include/netlink/route/link.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/netlink/route/link.h b/include/netlink/route/link.h
index c0030ec..c1f353f 100644
--- a/include/netlink/route/link.h
+++ b/include/netlink/route/link.h
@@ -200,6 +200,8 @@ extern int rtnl_link_get_master(struct rtnl_link *);
extern void rtnl_link_set_carrier(struct rtnl_link *, uint8_t);
extern uint8_t rtnl_link_get_carrier(struct rtnl_link *);
+extern int rtnl_link_get_carrier_changes(struct rtnl_link *, uint32_t *);
+
extern void rtnl_link_set_operstate(struct rtnl_link *, uint8_t);
extern uint8_t rtnl_link_get_operstate(struct rtnl_link *);