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

struct nl_addr* nl_addr_alloc_attr ( struct nlattr *  nla,
int  family 
) [read]

Allocate abstract address based on netlink attribute.

  • nla Netlink attribute of unspecific type.
  • family Address family.
Considers the netlink attribute payload a address of the specified family and allocates a new abstract address based on it.

Newly allocated address handle or NULL.

Definition at line 213 of file addr.c.

References nl_addr_build(), nla_data(), and nla_len().

      return nl_addr_build(family, nla_data(nla), nla_len(nla));

Generated by  Doxygen 1.6.0   Back to index