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

Function pcapng_optlen

dpdk/lib/pcapng/rte_pcapng.c:118–122  ·  view source on GitHub ↗

length of option including padding */

Source from the content-addressed store, hash-verified

116
117/* length of option including padding */
118static uint16_t pcapng_optlen(uint16_t len)
119{
120 return RTE_ALIGN(sizeof(struct pcapng_option) + len,
121 sizeof(uint32_t));
122}
123
124/* build TLV option and return location of next */
125static struct pcapng_option *

Callers 6

pcapng_add_optionFunction · 0.85
pcapng_section_blockFunction · 0.85
rte_pcapng_add_interfaceFunction · 0.85
rte_pcapng_write_statsFunction · 0.85
rte_pcapng_mbuf_sizeFunction · 0.85
rte_pcapng_copyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected