Lines Matching refs:nh
45 const struct sockaddr *mask, struct nhop_object *nh);
47 typedef int rnh_augment_nh_f_t(u_int fibnum, struct nhop_object *nh);
207 void tmproutes_update(struct rib_head *rnh, struct rtentry *rt, struct nhop_object *nh);
225 bool nhop_can_multipath(const struct nhop_object *nh);
226 bool match_nhop_gw(const struct nhop_object *nh, const struct sockaddr *gw);
228 const struct rtentry *rt, const struct nhop_object *nh);
250 void nhop_ref_object(struct nhop_object *nh);
251 int nhop_try_ref_object(struct nhop_object *nh);
252 void nhop_ref_any(struct nhop_object *nh);
253 void nhop_free_any(struct nhop_object *nh);
255 struct nhop_object *nh, int *perror);
278 nhop_select(struct nhop_object *nh, uint32_t flowid) in nhop_select() argument
282 if (NH_IS_NHGRP(nh)) { in nhop_select()
283 struct nhgrp_object *nhg = (struct nhgrp_object *)nh; in nhop_select()
284 nh = nhg->nhops[flowid % nhg->nhg_size]; in nhop_select()
287 return (nh); in nhop_select()
319 int rtsock_routemsg(int cmd, struct rtentry *rt, struct nhop_object *nh,