diff options
author | Job Feikens <job@vv32.nl> | 2023-11-30 12:54:57 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-12-01 09:26:55 (GMT) |
commit | 444e2c04fec45d97775ceff06504b50b8a9bd79e (patch) | |
tree | 6db032f206ff1b603be6bd80f0dd1a146b55b9c7 /include | |
parent | a4718e6747243af4ce6de66e7c037d7d9c7814fc (diff) | |
download | libnl-444e2c04fec45d97775ceff06504b50b8a9bd79e.zip libnl-444e2c04fec45d97775ceff06504b50b8a9bd79e.tar.gz libnl-444e2c04fec45d97775ceff06504b50b8a9bd79e.tar.bz2 |
route/can: implement can_device_stats
Adds the rtnl_link_can_get_device_stats function to get xstats of a
CAN-bus link as a can_device_stats struct.
https://github.com/thom311/libnl/pull/368
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink/route/link/can.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/netlink/route/link/can.h b/include/netlink/route/link/can.h index 7df50e3..1c23660 100644 --- a/include/netlink/route/link/can.h +++ b/include/netlink/route/link/can.h @@ -60,6 +60,9 @@ extern int rtnl_link_can_get_data_bittiming(struct rtnl_link *, extern int rtnl_link_can_set_data_bittiming(struct rtnl_link *, const struct can_bittiming *); +extern int rtnl_link_can_get_device_stats(struct rtnl_link *, + struct can_device_stats *); + #ifdef __cplusplus } #endif |