Lines Matching refs:gw
257 struct ncpaddr gw;
388 * We expect a string of the format ``dest[/bits] gw [metrics]''
390 * understood for ``dest'' and ``gw'' and ``0.0.0.0'' is the same
405 ncpaddr_setip4(&gw, ip);
416 !ncpaddr_aton(&gw, &bundle->ncp, argv[1]))
433 if (ncpaddr_getip4addr(&gw, &ipaddr) && ipaddr == INADDR_ANY) {
435 ncpaddr_setip4(&gw, bundle->ncp.ipcp.peer_ip);
439 route_Add(&r->routes, addrs, &dest, &gw);
473 * We expect a string of the format ``dest[/bits] gw [metrics]''
475 * understood for ``dest'' and ``gw'' and ``::'' is the same
489 ncpaddr_setip6(&gw, &in6addr_any);
490 ncprange_set(&dest, &gw, 0);
500 !ncpaddr_aton(&gw, &bundle->ncp, argv[1]))
511 if (ncpaddr_getip6(&gw, &ip6) && IN6_IS_ADDR_UNSPECIFIED(&ip6)) {
513 ncpaddr_copy(&gw, &bundle->ncp.ipv6cp.hisaddr);
517 route_Add(&r->ipv6routes, addrs, &dest, &gw);