Logo Search packages:      
Sourcecode: libnl version File versions  Download package

struct nl_cache* rtnl_rule_alloc_cache ( struct nl_handle handle ) [read]

Build a rule cache including all rules currently configured in the kernel.

  • handle netlink handle

Allocates a new rule cache, initializes it properly and updates it to include all rules currently configured in the kernel.

Note:
The caller is responsible for destroying and freeing the cache after using it. (nl_cache_destroy_and_free())
Returns:
The new cache or NULL if an error occured.

Definition at line 479 of file rule.c.

References rtnl_rule_alloc_cache_by_family().

{
      return rtnl_rule_alloc_cache_by_family(handle, AF_UNSPEC);
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index