* Append a uint16_t netlink attribute to a message. * * @param[in, out] nh * The netlink message to parse, received from the kernel. * @param[in] type * The type of attribute to append. * @param[in] data * The data to append. */
| 349 | * The data to append. |
| 350 | */ |
| 351 | void |
| 352 | tap_nlattr_add32(struct nlmsghdr *nh, unsigned short type, uint32_t data) |
| 353 | { |
| 354 | tap_nlattr_add(nh, type, sizeof(uint32_t), &data); |
| 355 | } |
| 356 | |
| 357 | /** |
| 358 | * Start a nested netlink attribute. |
no test coverage detected