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)
 

Detailed Description

Function Documentation

◆ rtnl_netconf_alloc_cache()

int rtnl_netconf_alloc_cache ( struct nl_sock * sk,
struct nl_cache ** result )

Definition at line 352 of file netconf.c.

◆ rtnl_netconf_get_by_idx()

struct rtnl_netconf * rtnl_netconf_get_by_idx ( struct nl_cache * cache,
int family,
int ifindex )

Search netconf in cache.

Parameters
cachenetconf cache
familyAddress family of interest
ifindexInterface 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.

Returns
netconf object or NULL if no match was found.

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:

◆ rtnl_netconf_put()

void rtnl_netconf_put ( struct rtnl_netconf * nc)

Definition at line 391 of file netconf.c.

◆ rtnl_netconf_get_all()

struct rtnl_netconf * rtnl_netconf_get_all ( struct nl_cache * cache,
int family )

Search netconf in cache.

Parameters
cachenetconf cache
familyAddress 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.

Returns
netconf object or NULL if no match was found.

Definition at line 410 of file netconf.c.

References rtnl_netconf_get_by_idx().

+ Here is the call graph for this function:

◆ rtnl_netconf_get_default()

struct rtnl_netconf * rtnl_netconf_get_default ( struct nl_cache * cache,
int family )

Search netconf in cache.

Parameters
cachenetconf cache
familyAddress 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.

Returns
netconf object or NULL if no match was found.

Definition at line 429 of file netconf.c.

References rtnl_netconf_get_by_idx().

+ Here is the call graph for this function:

◆ rtnl_netconf_get_family()

int rtnl_netconf_get_family ( struct rtnl_netconf * nc,
int * val )

Definition at line 441 of file netconf.c.

◆ rtnl_netconf_get_ifindex()

int rtnl_netconf_get_ifindex ( struct rtnl_netconf * nc,
int * val )

Definition at line 451 of file netconf.c.

◆ rtnl_netconf_get_forwarding()

int rtnl_netconf_get_forwarding ( struct rtnl_netconf * nc,
int * val )

Definition at line 461 of file netconf.c.

◆ rtnl_netconf_get_mc_forwarding()

int rtnl_netconf_get_mc_forwarding ( struct rtnl_netconf * nc,
int * val )

Definition at line 471 of file netconf.c.

◆ rtnl_netconf_get_rp_filter()

int rtnl_netconf_get_rp_filter ( struct rtnl_netconf * nc,
int * val )

Definition at line 481 of file netconf.c.

◆ rtnl_netconf_get_proxy_neigh()

int rtnl_netconf_get_proxy_neigh ( struct rtnl_netconf * nc,
int * val )

Definition at line 491 of file netconf.c.

◆ rtnl_netconf_get_ignore_routes_linkdown()

int rtnl_netconf_get_ignore_routes_linkdown ( struct rtnl_netconf * nc,
int * val )

Definition at line 501 of file netconf.c.

◆ rtnl_netconf_get_input()

int rtnl_netconf_get_input ( struct rtnl_netconf * nc,
int * val )

Definition at line 511 of file netconf.c.