Lines Matching defs:router
573 default_route_add(struct in_addr router, boolean_t proxy_arp)
581 return (route_cmd(RTM_ADD, zeroes, router, zeroes, flags));
619 struct in_addr router = { 0 };
649 if (get_ip_parameters(&iaddr, &netmask, &router) == FALSE) {
650 /* use DHCP to retrieve IP address, netmask and router */
651 error = dhcp(ifp, &iaddr, 64, &netmask, &router, procp);
661 if (router.s_addr) {
662 printf(" router " IP_FORMAT, IP_LIST(&router));
670 if (router.s_addr == 0) {
671 /* enable proxy arp if we don't have a router */
672 router.s_addr = iaddr.s_addr;
675 IP_LIST(&router));
676 error = default_route_add(router, router.s_addr == iaddr.s_addr);
697 * and either the router or the server can't answer our ARP
701 * EHOSTUNREACH router's route
716 error = host_route_delete(router);
719 ") failed %d\n", IP_LIST(&router), error);