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

Function parse_ipv6_addr

dpdk/examples/ip_pipeline/parser.c:389–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387}
388
389int
390parse_ipv6_addr(const char *token, struct in6_addr *ipv6)
391{
392 if (strlen(token) >= INET6_ADDRSTRLEN)
393 return -EINVAL;
394
395 if (inet_pton(AF_INET6, token, ipv6) != 1)
396 return -EINVAL;
397
398 return 0;
399}
400
401int
402parse_mac_addr(const char *token, struct rte_ether_addr *addr)

Callers 3

parse_matchFunction · 0.70
parse_table_action_encapFunction · 0.70
parse_table_action_natFunction · 0.70

Calls 1

inet_ptonFunction · 0.85

Tested by

no test coverage detected