MCPcopy Create free account
hub / github.com/F-Stack/f-stack / tap_nlattr_add8

Function tap_nlattr_add8

dpdk/drivers/net/tap/tap_netlink.c:319–323  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

317 * The data to append.
318 */
319void
320tap_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.

Callers 5

tap_flow_create_vlanFunction · 0.85
tap_flow_create_ipv4Function · 0.85
tap_flow_create_ipv6Function · 0.85
tap_flow_create_udpFunction · 0.85
tap_flow_create_tcpFunction · 0.85

Calls 1

tap_nlattr_addFunction · 0.85

Tested by

no test coverage detected