Home
last modified time | relevance | path

Searched refs:test_ip (Results 1 – 1 of 1) sorted by relevance

/subsys/net/pkt_filter/
A Dbase.c288 struct npf_test_ip *test_ip = in npf_ip_src_addr_match() local
292 for (uint32_t ip_it = 0; ip_it < test_ip->ipaddr_num; ip_it++) { in npf_ip_src_addr_match()
296 if (net_ipv4_addr_cmp(addr, &((struct in_addr *)test_ip->ipaddr)[ip_it])) { in npf_ip_src_addr_match()
302 if (net_ipv6_addr_cmp(addr, &((struct in6_addr *)test_ip->ipaddr)[ip_it])) { in npf_ip_src_addr_match()
374 struct npf_test_ip *test_ip = in npf_test_get_str() local
382 if (test_ip->ipaddr_num == 0) { in npf_test_get_str()
389 for (uint32_t i = 0; i < test_ip->ipaddr_num; i++) { in npf_test_get_str()
391 test_ip->addr_family == AF_INET) { in npf_test_get_str()
393 &((struct in_addr *)test_ip->ipaddr)[i]; in npf_test_get_str()
400 test_ip->addr_family == AF_INET6) { in npf_test_get_str()
[all …]

Completed in 4 milliseconds