* Append a uint8_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. */
| 317 | * The data to append. |
| 318 | */ |
| 319 | void |
| 320 | tap_nlattr_add8(struct nlmsghdr *nh, unsigned short type, uint8_t data) |
| 321 | { |
| 322 | tap_nlattr_add(nh, type, sizeof(uint8_t), &data); |
| 323 | } |
| 324 | |
| 325 | /** |
| 326 | * Append a uint16_t netlink attribute to a message. |
no test coverage detected