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

int nla_put_u16 ( struct nl_msg *  msg,
int  attrtype,
uint16_t  value 
)

Add 16 bit integer attribute to netlink message.

  • msg Netlink message.
  • attrtype Attribute type.
  • value Numeric value to store as payload.
See also:
nla_put
Returns:
0 on success or a negative error code.

Definition at line 925 of file attr.c.

References nla_put().

{
      return nla_put(msg, attrtype, sizeof(uint16_t), &value);
}


Generated by  Doxygen 1.6.0   Back to index