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

Function parser_ip6_read

dpdk/app/graph/utils.c:119–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119int
120parser_ip6_read(uint8_t *value, char *p)
121{
122 uint64_t val = 0;
123 char *token;
124
125 token = strtok(p, ":");
126 while (token != NULL) {
127 hex_string_to_uint64(&val, token);
128 *value = val;
129 token = strtok(NULL, ":");
130 value++;
131 val = 0;
132 }
133
134 return 0;
135}
136
137int
138parser_mac_read(uint64_t *value, char *p)

Callers 3

cli_ip6_addrFunction · 0.85
cli_ipv6_lookupFunction · 0.85
cli_neigh_v6Function · 0.85

Calls 2

strtokFunction · 0.85
hex_string_to_uint64Function · 0.85

Tested by

no test coverage detected