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

Function get_xdigit

dpdk/lib/net/rte_ether.c:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29static int8_t get_xdigit(char ch)
30{
31 if (ch >= '0' && ch <= '9')
32 return ch - '0';
33 if (ch >= 'a' && ch <= 'f')
34 return ch - 'a' + 10;
35 if (ch >= 'A' && ch <= 'F')
36 return ch - 'A' + 10;
37 return -1;
38}
39
40/* Convert 00:11:22:33:44:55 to ethernet address */
41static bool get_ether_addr6(const char *s0, struct rte_ether_addr *ea,

Callers 2

get_ether_addr6Function · 0.85
get_ether_addr3Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected