Home
last modified time | relevance | path

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

/linux-6.12.1/samples/bpf/
Dxdp_tx_iptunnel_user.c100 static int parse_ipstr(const char *ipstr, unsigned int *addr) in parse_ipstr() argument
102 if (inet_pton(AF_INET6, ipstr, addr) == 1) { in parse_ipstr()
104 } else if (inet_pton(AF_INET, ipstr, addr) == 1) { in parse_ipstr()
109 fprintf(stderr, "%s is an invalid IP\n", ipstr); in parse_ipstr()
/linux-6.12.1/tools/testing/selftests/net/
Dfib_nexthops.sh314 local ipstr=""
317 ipstr="172.16.1."
319 ipstr="2001:db8:91::"
331 run_cmd "$IP nexthop add id $nhidstr via $ipstr$iter dev veth1"
332 check_nexthop "id $nhidstr" "id $nhidstr via $ipstr$iter dev veth1 scope link"
361 local ipstr=""
364 ipstr="172.16.1.2"
366 ipstr="2001:db8:91::2"
370 run_cmd "$IP nexthop add id 100 via $ipstr dev veth1"