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()
311 local ipstr=""314 ipstr="172.16.1."316 ipstr="2001:db8:91::"328 run_cmd "$IP nexthop add id $nhidstr via $ipstr$iter dev veth1"329 check_nexthop "id $nhidstr" "id $nhidstr via $ipstr$iter dev veth1 scope link"358 local ipstr=""361 ipstr="172.16.1.2"363 ipstr="2001:db8:91::2"367 run_cmd "$IP nexthop add id 100 via $ipstr dev veth1"