libnl
3.4.0
|
Cache Management | |
int | rtnl_netconf_alloc_cache (struct nl_sock *sk, struct nl_cache **result) |
struct rtnl_netconf * | rtnl_netconf_get_by_idx (struct nl_cache *cache, int family, int ifindex) |
Search netconf in cache. More... | |
void | rtnl_netconf_put (struct rtnl_netconf *nc) |
struct rtnl_netconf * | rtnl_netconf_get_all (struct nl_cache *cache, int family) |
Search netconf in cache. More... | |
struct rtnl_netconf * | rtnl_netconf_get_default (struct nl_cache *cache, int family) |
Search netconf in cache. More... | |
struct rtnl_netconf* rtnl_netconf_get_by_idx | ( | struct nl_cache * | cache, |
int | family, | ||
int | ifindex | ||
) |
Search netconf in cache.
cache | netconf cache |
family | Address family of interest |
ifindex | Interface index of interest |
Searches netconf cache previously allocated with rtnl_netconf_alloc_cache() for given index and family
The reference counter is incremented before returning the netconf entry, therefore the reference must be given back with rtnl_netconf_put() after usage.
Definition at line 381 of file netconf.c.
Referenced by rtnl_netconf_get_all(), and rtnl_netconf_get_default().
struct rtnl_netconf* rtnl_netconf_get_all | ( | struct nl_cache * | cache, |
int | family | ||
) |
Search netconf in cache.
cache | netconf cache |
family | Address family of interest |
Searches netconf cache previously allocated with rtnl_netconf_alloc_cache() for "all" netconf settings for given family
The reference counter is incremented before returning the netconf entry, therefore the reference must be given back with rtnl_netconf_put() after usage.
Definition at line 419 of file netconf.c.
References rtnl_netconf_get_by_idx().
struct rtnl_netconf* rtnl_netconf_get_default | ( | struct nl_cache * | cache, |
int | family | ||
) |
Search netconf in cache.
cache | netconf cache |
family | Address family of interest |
Searches netconf cache previously allocated with rtnl_netconf_alloc_cache() for "default" netconf settings for given family
The reference counter is incremented before returning the netconf entry, therefore the reference must be given back with rtnl_netconf_put() after usage.
Definition at line 438 of file netconf.c.
References rtnl_netconf_get_by_idx().