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

Function can_parse_addr

dpdk/app/test/test_cmdline_ipaddr.c:318–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318static int
319can_parse_addr(unsigned addr_flags, unsigned test_flags)
320{
321 if ((test_flags & addr_flags) == addr_flags) {
322 /* if we are not trying to parse network addresses */
323 if (test_flags < CMDLINE_IPADDR_NETWORK)
324 return 1;
325 /* if this is a network address */
326 else if (addr_flags & CMDLINE_IPADDR_NETWORK)
327 return 1;
328 }
329 return 0;
330}
331
332int
333test_parse_ipaddr_valid(void)

Callers 1

test_parse_ipaddr_validFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected