|
libnl 3.11.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. | |
| 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. | |
| struct rtnl_netconf * | rtnl_netconf_get_default (struct nl_cache *cache, int family) |
| Search netconf in cache. | |
Attributes | |
| int | rtnl_netconf_get_family (struct rtnl_netconf *nc, int *val) |
| int | rtnl_netconf_get_ifindex (struct rtnl_netconf *nc, int *val) |
| int | rtnl_netconf_get_forwarding (struct rtnl_netconf *nc, int *val) |
| int | rtnl_netconf_get_mc_forwarding (struct rtnl_netconf *nc, int *val) |
| int | rtnl_netconf_get_rp_filter (struct rtnl_netconf *nc, int *val) |
| int | rtnl_netconf_get_proxy_neigh (struct rtnl_netconf *nc, int *val) |
| int | rtnl_netconf_get_ignore_routes_linkdown (struct rtnl_netconf *nc, int *val) |
| int | rtnl_netconf_get_input (struct rtnl_netconf *nc, int *val) |
| 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.
| 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 372 of file netconf.c.
References nl_object_get().
Referenced by rtnl_netconf_get_all(), and rtnl_netconf_get_default().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 410 of file netconf.c.
References rtnl_netconf_get_by_idx().
Here is the call graph for this function:| 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 429 of file netconf.c.
References rtnl_netconf_get_by_idx().
Here is the call graph for this function:| int rtnl_netconf_get_family | ( | struct rtnl_netconf * | nc, |
| int * | val ) |
| int rtnl_netconf_get_ifindex | ( | struct rtnl_netconf * | nc, |
| int * | val ) |
| int rtnl_netconf_get_forwarding | ( | struct rtnl_netconf * | nc, |
| int * | val ) |
| int rtnl_netconf_get_mc_forwarding | ( | struct rtnl_netconf * | nc, |
| int * | val ) |
| int rtnl_netconf_get_rp_filter | ( | struct rtnl_netconf * | nc, |
| int * | val ) |
| int rtnl_netconf_get_proxy_neigh | ( | struct rtnl_netconf * | nc, |
| int * | val ) |
| int rtnl_netconf_get_ignore_routes_linkdown | ( | struct rtnl_netconf * | nc, |
| int * | val ) |