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

int nla_put_data ( struct nl_msg *  msg,
int  attrtype,
struct nl_data *  data 

Add abstract data as unspecific attribute to netlink message.

  • msg Netlink message.
  • attrtype Attribute type.
  • data Abstract data object.
Equivalent to nla_put() except that the length of the payload is derived from the abstract data object.

See also:
0 on success or a negative error code.

Definition at line 864 of file attr.c.

References nl_data_get(), nl_data_get_size(), and nla_put().

      return nla_put(msg, attrtype, nl_data_get_size(data),

Generated by  Doxygen 1.6.0   Back to index