Lines Matching full:nh
54 struct nhop_object *nh) in rib4_set_nh_pfxflags() argument
61 nhop_set_pxtype_flag(nh, NHF_HOST); in rib4_set_nh_pfxflags()
74 if (in_ifnet_broadcast(addr4->sin_addr, nh->nh_ifp)) in rib4_set_nh_pfxflags()
77 nhop_set_pxtype_flag(nh, NHF_DEFAULT); in rib4_set_nh_pfxflags()
79 nhop_set_pxtype_flag(nh, 0); in rib4_set_nh_pfxflags()
81 nhop_set_broadcast(nh, is_broadcast); in rib4_set_nh_pfxflags()
87 rib4_augment_nh(u_int fibnum, struct nhop_object *nh) in rib4_augment_nh() argument
94 if (nh->nh_mtu == 0) { in rib4_augment_nh()
95 nh->nh_mtu = nh->nh_ifp->if_mtu; in rib4_augment_nh()
96 } else if (nh->nh_mtu > nh->nh_ifp->if_mtu) in rib4_augment_nh()
97 nh->nh_mtu = nh->nh_ifp->if_mtu; in rib4_augment_nh()
100 if (nhop_get_type(nh) == 0) { in rib4_augment_nh()
102 if (nh->nh_flags & NHF_GATEWAY) in rib4_augment_nh()
107 nhop_set_type(nh, nh_type); in rib4_augment_nh()
155 in_ifadownkill(const struct rtentry *rt, const struct nhop_object *nh, in in_ifadownkill() argument
160 if (nh->nh_ifa != ap->ifa) in in_ifadownkill()
163 if ((nhop_get_rtflags(nh) & RTF_STATIC) != 0 && ap->del == 0) in in_ifadownkill()