Searched refs:ipstr (Results 1 – 2 of 2) sorted by relevance
100 static int parse_ipstr(const char *ipstr, unsigned int *addr) in parse_ipstr() argument102 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()
313 local ipstr=""316 ipstr="172.16.1."318 ipstr="2001:db8:91::"330 run_cmd "$IP nexthop add id $nhidstr via $ipstr$iter dev veth1"331 check_nexthop "id $nhidstr" "id $nhidstr via $ipstr$iter dev veth1 scope link"360 local ipstr=""363 ipstr="172.16.1.2"365 ipstr="2001:db8:91::2"369 run_cmd "$IP nexthop add id 100 via $ipstr dev veth1"