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

Function ipv4_hdr_print

dpdk/examples/ipsec-secgw/flow.c:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44int nb_flow_rule;
45
46static void
47ipv4_hdr_print(struct rte_ipv4_hdr *hdr)
48{
49 char a, b, c, d;
50
51 uint32_t_to_char(rte_bswap32(hdr->src_addr), &a, &b, &c, &d);
52 printf("src: %3hhu.%3hhu.%3hhu.%3hhu \t", a, b, c, d);
53
54 uint32_t_to_char(rte_bswap32(hdr->dst_addr), &a, &b, &c, &d);
55 printf("dst: %3hhu.%3hhu.%3hhu.%3hhu", a, b, c, d);
56}
57
58static int
59ipv4_addr_cpy(rte_be32_t *spec, rte_be32_t *mask, char *token,

Callers 2

flow_print_countersFunction · 0.85
flow_initFunction · 0.85

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected