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

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

Add a u16 netlink attribute to a netlink message

  • n netlink message
  • attrtype attribute type
  • value numeric value

Definition at line 546 of file attr.c.

References nla_put().

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


Generated by  Doxygen 1.6.0   Back to index