Lines Matching defs:nh
61 struct nhop_object *nh;
63 nh = fib6_lookup(M_GETFIB(m), &dst->sin6_addr,
65 if (nh == NULL) {
72 if (nh->nh_flags & NHF_BLACKHOLE) {
78 if (nh->nh_flags & NHF_REJECT) {
85 *pnh = nh;
94 struct nhop_object *nh;
199 if (ip6_findroute(&nh, &dst, m) != 0) {
205 if (m->m_pkthdr.len > nh->nh_mtu) {
206 in6_ifstat_inc(nh->nh_ifp, ifs6_in_toobig);
207 icmp6_error(m, ICMP6_PACKET_TOO_BIG, 0, nh->nh_mtu);
217 if (pfil_mbuf_out(V_inet6_pfil_head, &m, nh->nh_ifp,
225 if (m->m_pkthdr.len > nh->nh_mtu) {
226 in6_ifstat_inc(nh->nh_ifp, ifs6_in_toobig);
227 icmp6_error(m, ICMP6_PACKET_TOO_BIG, 0, nh->nh_mtu);
267 if (ip6_findroute(&nh, &dst, m) != 0) {
281 IP_PROBE(send, NULL, NULL, ip6, nh->nh_ifp, NULL, ip6);
283 if (nh->nh_flags & NHF_GATEWAY)
284 dst.sin6_addr = nh->gw6_sa.sin6_addr;
285 error = (*nh->nh_ifp->if_output)(nh->nh_ifp, m,
288 in6_ifstat_inc(nh->nh_ifp, ifs6_out_discard);
291 in6_ifstat_inc(nh->nh_ifp, ifs6_out_forward);
299 in6_ifstat_inc(nh->nh_ifp, ifs6_out_discard);