Lines Matching refs:gw
67 * ifp, ifa, aifp, mtu, gw addr(if set), nh_type, nh_upper_family, mask of rt_flags and
193 struct sockaddr *gw;
195 gw = info->rti_info[RTAX_GATEWAY];
196 MPASS(gw != NULL);
199 if ((gw->sa_family == AF_LINK) && !is_gw) {
210 struct sockaddr_dl *sdl = (struct sockaddr_dl *)gw;
231 if (!nhop_set_gw(nh, gw, is_gw))
754 nhop_set_gw(struct nhop_object *nh, const struct sockaddr *gw, bool is_gw)
756 if (gw->sa_len > sizeof(nh->gw_buf)) {
758 gw->sa_family, gw->sa_len);
762 if (!nhop_check_gateway(nh->nh_priv->nh_upper_family, gw->sa_family)) {
765 nh->nh_priv->nh_upper_family, gw->sa_family);
769 memcpy(&nh->gw_sa, gw, gw->sa_len);
770 memset(&nh->gw_buf[gw->sa_len], 0, sizeof(nh->gw_buf) - gw->sa_len);
775 nh->nh_priv->nh_neigh_family = gw->sa_family;