Lines Matching refs:nh
95 struct nhop_object *nh = NULL;
185 nh = fib6_lookup(M_GETFIB(m), &dst.sin6_addr, dst.sin6_scope_id,
187 if (nh == NULL) {
197 if (nh->nh_flags & (NHF_BLACKHOLE | NHF_REJECT)) {
200 if (nh->nh_flags & NHF_REJECT) {
217 outzone = in6_get_unicast_scopeid(&ip6->ip6_src, nh->nh_ifp);
222 in6_ifstat_inc(nh->nh_ifp, ifs6_in_discard);
231 if_name(m->m_pkthdr.rcvif), if_name(nh->nh_ifp));
247 outzone = in6_get_unicast_scopeid(&ip6->ip6_dst, nh->nh_ifp);
255 if (nh->nh_flags & NHF_GATEWAY) {
257 dst.sin6_addr = nh->gw6_sa.sin6_addr;
271 if (V_ip6_sendredirects && nh->nh_ifp == m->m_pkthdr.rcvif && !srcrt &&
272 (nh->nh_flags & NHF_REDIRECT) == 0)
283 if ((nh->nh_ifp->if_flags & IFF_LOOPBACK) != 0) {
304 if_name(nh->nh_ifp));
311 origifp = nh->nh_ifp;
325 if (pfil_mbuf_fwd(V_inet6_pfil_head, &m, nh->nh_ifp,
337 NH_FREE(nh);
376 NH_FREE(nh);
382 /* TODO: change to nh->nh_mtu */
383 if (m->m_pkthdr.len > IN6_LINKMTU(nh->nh_ifp)) {
384 in6_ifstat_inc(nh->nh_ifp, ifs6_in_toobig);
387 IN6_LINKMTU(nh->nh_ifp));
396 error = nd6_output_ifp(nh->nh_ifp, origifp, m, &dst, NULL);
398 in6_ifstat_inc(nh->nh_ifp, ifs6_out_discard);
402 in6_ifstat_inc(nh->nh_ifp, ifs6_out_forward);
416 icmp6_redirect_output(mcopy, nh);
447 if (nh != NULL)
448 NH_FREE(nh);