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

struct rtnl_addr* rtnl_addr_alloc ( void   )  [read]

Allocate and initialize a new address object

Note:
Free the memory after usage using rtnl_addr_put() or rtnl_addr_free().
Returns:
Newly allocated address object or NULL if an error occured.

Definition at line 490 of file addr.c.

References nl_object_alloc_from_ops().

{
      return (struct rtnl_addr *) nl_object_alloc_from_ops(&rtnl_addr_ops);
}


Generated by  Doxygen 1.6.0   Back to index