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

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

Build a neighbour table cache including all neighbour tables currently configured in the kernel.

  • sk Netlink socket.
  • result Pointer to store resulting cache.
Allocates a new neighbour table cache, initializes it properly and updates it to include all neighbour tables currently configured in the kernel.

Returns:
0 on success or a negative error code.

Definition at line 387 of file neightbl.c.

{
      return nl_cache_alloc_and_fill(&rtnl_neightbl_ops, sk, result);
}


Generated by  Doxygen 1.6.0   Back to index