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()
314 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"