Lines Matching defs:gate
121 #define gate info.rti_info[RTAX_GATEWAY]
371 (gate != NULL && (gate->sa_family >= AF_MAX))) {
387 if (gate != NULL &&
388 gate->sa_family == AF_INET && gate->sa_len != sizeof (gate_in)) {
390 if (gate->sa_len < offsetof(struct sockaddr_in, sin_zero))
395 gate_in.sin_port = SIN(gate)->sin_port;
396 gate_in.sin_addr = SIN(gate)->sin_addr;
397 gate = (struct sockaddr *)&gate_in;
422 if (gate == NULL)
442 (gate && satosinaddr(dst) == satosinaddr(gate))) {
444 (ntohl(satosinaddr(gate)>>24))&0xff,
445 (ntohl(satosinaddr(gate)>>16))&0xff,
446 (ntohl(satosinaddr(gate)>>8))&0xff,
447 (ntohl(satosinaddr(gate)))&0xff);
453 error = rtrequest_scoped_locked(RTM_ADD, dst, gate,
485 rt_setif(saved_nrt, ifpaddr, ifaaddr, gate,
500 gate, netmask, rtm->rtm_flags, &saved_nrt, ifscope);
527 gate = rt->rt_gateway;
564 if (gate && (error = rt_setgate(rt, rt_key(rt), gate)))
574 if ((rt->rt_flags & RTF_GATEWAY) && !gate)
575 gate = rt->rt_gateway;
583 rt_setif(rt, ifpaddr, ifaaddr, gate,
592 rt->rt_ifa->ifa_rtrequest(RTM_ADD, rt, gate);
1062 gate = rt->rt_gateway;
1102 gate = ifma->ifma_ll->ifma_addr;
1127 gate = rt->rt_gateway;
1309 gate = ifma->ifma_ll->ifma_addr;