diff options
author | Stanislav Zaikin <zstaseg@gmail.com> | 2023-07-27 08:48:20 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-07-31 13:11:28 (GMT) |
commit | 1b6433d9f6d1e6dd513fe9216b7ac7b6ef9e0d0e (patch) | |
tree | 34f7f19f253cc40ed725e0c4faa82a6447f3e30c /include | |
parent | e0140c5fedae37ab1ad1984ab5714c81a3b63e2f (diff) | |
download | libnl-1b6433d9f6d1e6dd513fe9216b7ac7b6ef9e0d0e.zip libnl-1b6433d9f6d1e6dd513fe9216b7ac7b6ef9e0d0e.tar.gz libnl-1b6433d9f6d1e6dd513fe9216b7ac7b6ef9e0d0e.tar.bz2 |
neigh: add support of NHID attribute
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink-private/types.h | 1 | ||||
-rw-r--r-- | include/netlink/route/neighbour.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/netlink-private/types.h b/include/netlink-private/types.h index b8f785a..7075e69 100644 --- a/include/netlink-private/types.h +++ b/include/netlink-private/types.h @@ -254,6 +254,7 @@ struct rtnl_neigh uint8_t n_type; struct nl_addr *n_lladdr; struct nl_addr *n_dst; + uint32_t n_nhid; uint32_t n_probes; struct rtnl_ncacheinfo n_cacheinfo; uint32_t n_state_mask; diff --git a/include/netlink/route/neighbour.h b/include/netlink/route/neighbour.h index 3760414..657db53 100644 --- a/include/netlink/route/neighbour.h +++ b/include/netlink/route/neighbour.h @@ -79,6 +79,9 @@ extern int rtnl_neigh_get_vlan(struct rtnl_neigh *); extern void rtnl_neigh_set_master(struct rtnl_neigh *, int); extern int rtnl_neigh_get_master(struct rtnl_neigh *); +extern void rtnl_neigh_set_nhid(struct rtnl_neigh *, uint32_t); +extern int rtnl_neigh_get_nhid(struct rtnl_neigh *, uint32_t *); + #ifdef __cplusplus } #endif |