| 316 | } |
| 317 | |
| 318 | static int |
| 319 | can_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 | |
| 332 | int |
| 333 | test_parse_ipaddr_valid(void) |
no outgoing calls
no test coverage detected