Lines Matching refs:gw
255 struct ncpaddr gw;
386 * We expect a string of the format ``dest[/bits] gw [metrics]''
388 * understood for ``dest'' and ``gw'' and ``0.0.0.0'' is the same
403 ncpaddr_setip4(&gw, ip);
414 !ncpaddr_aton(&gw, &bundle->ncp, argv[1]))
431 if (ncpaddr_getip4addr(&gw, &ipaddr) && ipaddr == INADDR_ANY) {
433 ncpaddr_setip4(&gw, bundle->ncp.ipcp.peer_ip);
437 route_Add(&r->routes, addrs, &dest, &gw);
471 * We expect a string of the format ``dest[/bits] gw [metrics]''
473 * understood for ``dest'' and ``gw'' and ``::'' is the same
487 ncpaddr_setip6(&gw, &in6addr_any);
488 ncprange_set(&dest, &gw, 0);
498 !ncpaddr_aton(&gw, &bundle->ncp, argv[1]))
509 if (ncpaddr_getip6(&gw, &ip6) && IN6_IS_ADDR_UNSPECIFIED(&ip6)) {
511 ncpaddr_copy(&gw, &bundle->ncp.ipv6cp.hisaddr);
515 route_Add(&r->ipv6routes, addrs, &dest, &gw);