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

Function parse_mac_addr

dpdk/examples/ip_pipeline/parser.c:401–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401int
402parse_mac_addr(const char *token, struct rte_ether_addr *addr)
403{
404 struct rte_ether_addr *tmp;
405
406 tmp = my_ether_aton(token);
407 if (tmp == NULL)
408 return -1;
409
410 memcpy(addr, tmp, sizeof(struct rte_ether_addr));
411 return 0;
412}
413
414int
415parse_cpu_core(const char *entry,

Callers 1

parse_table_action_encapFunction · 0.70

Calls 2

my_ether_atonFunction · 0.85
memcpyFunction · 0.50

Tested by

no test coverage detected