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

Function tap_nlattr_add32

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

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

Source from the content-addressed store, hash-verified

349 * The data to append.
350 */
351void
352tap_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.

Callers 3

tap_flow_create_ipv4Function · 0.85
add_actionFunction · 0.85
rss_enableFunction · 0.85

Calls 1

tap_nlattr_addFunction · 0.85

Tested by

no test coverage detected