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

struct nl_data* nl_data_alloc_attr ( struct nlattr *  nla  )  [read]

Allocate abstract data object based on netlink attribute.

  • nla Netlink attribute of unspecific type.
Allocates a new abstract data and copies the payload of the attribute to the abstract data object.

See also:
Newly allocated data handle or NULL

Definition at line 72 of file data.c.

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

      return nl_data_alloc(nla_data(nla), nla_len(nla));

Generated by  Doxygen 1.6.0   Back to index