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 399 of file rule.c.

References rtnl_rule_alloc_cache_by_family().

{
      return rtnl_rule_alloc_cache_by_family(handle, AF_UNSPEC);
}


Generated by  Doxygen 1.6.0   Back to index