Searched refs:nh (Results 26 - 50 of 122) sorted by relevance

12345

/freebsd-current/usr.bin/netstat/
H A Dnhgrp.c162 // nh index
163 xo_emit("{t:nh-index/%*lu}", wid_nhidx, ext_cp[i].nh_idx);
164 xo_emit("{t:nh-weight/%*lu}", wid_nhidx, ext_cp[i].nh_weight);
165 xo_emit("{t:nh-slots/%*lu}", wid_nhidx, slots);
168 xo_emit("{t:nh-gw/%*.*s}", wid_gw, wid_gw, ne->gw);
169 xo_emit("{t:nh-interface/%*.*s}", wid_if, wid_if, ne->ifname);
281 update_global_map(struct nhop_external *nh) argument
288 na = (struct nhop_addrs *)((char *)nh + nh->nh_len);
292 if (nh
313 struct nhop_external *nh; local
[all...]
/freebsd-current/sys/net/
H A Droute.c208 struct nhop_object *nh = nhop_alloc(fibnum, dst->sa_family); local
209 if (nh == NULL)
212 nhop_set_gw(nh, gateway, flags & RTF_GATEWAY);
213 nhop_set_transmit_ifp(nh, ifp);
214 nhop_set_src(nh, ifa);
215 nhop_set_pxtype_flag(nh, NHF_HOST);
216 nhop_set_expire(nh, lifetime_sec + time_uptime);
217 nhop_set_redirect(nh, true);
218 nhop_set_origin(nh, NH_ORIGIN_REDIRECT);
219 rnd.rnd_nhop = nhop_get_nhop(nh,
295 struct nhop_object *nh; local
333 rt_ifdelroute(const struct rtentry *rt, const struct nhop_object *nh, void *arg) argument
658 rt_routemsg(int cmd, struct rtentry *rt, struct nhop_object *nh, int fibnum) argument
[all...]
H A Drtsock.c202 static int sysctl_dumpnhop(struct rtentry *rt, struct nhop_object *nh,
207 const struct nhop_object *nh, struct rt_metrics *out);
214 struct rib_cmd_info *rc, struct nhop_object *nh);
279 struct nhop_object *nh; local
281 nh = rc->rc_cmd == RTM_DELETE ? rc->rc_nh_old : rc->rc_nh_new;
282 rt_routemsg(rc->rc_cmd, rc->rc_rt, nh, fibnum);
486 struct nhop_object *nh, union sockaddr_union *saun, struct ucred *cred)
493 if (prison_if(cred, nh->nh_ifa->ifa_addr) == 0) {
494 info->rti_info[RTAX_IFA] = nh->nh_ifa->ifa_addr;
528 ia = ((struct sockaddr_in *)nh
485 rtm_get_jailed(struct rt_addrinfo *info, struct ifnet *ifp, struct nhop_object *nh, union sockaddr_union *saun, struct ucred *cred) argument
692 struct nhop_object *nh; local
716 select_nhop(struct nhop_object *nh, const struct sockaddr *gw) argument
747 struct nhop_object *nh; local
943 update_rtm_from_rc(struct rt_addrinfo *info, struct rt_msghdr **prtm, int alloc_len, struct rib_cmd_info *rc, struct nhop_object *nh) argument
1043 struct nhop_object *nh; local
1293 rt_getmetrics(const struct rtentry *rt, const struct nhop_object *nh, struct rt_metrics *out) argument
2011 rtsock_routemsg(int cmd, struct rtentry *rt, struct nhop_object *nh, int fibnum) argument
2212 struct nhop_object *nh; local
2241 sysctl_dumpnhop(struct rtentry *rt, struct nhop_object *nh, uint32_t weight, struct walkarg *w) argument
[all...]
/freebsd-current/sys/net/route/
H A Dnhop.c215 struct nhop_object *nh = priv->nh; local
217 .ifentropy = (uint16_t)((((uintptr_t)nh->nh_ifp) >> 6) & 0xFFFF),
218 .family = nh->gw_sa.sa_family,
220 .gw_addr = (nh->gw_sa.sa_family == AF_INET6) ?
221 nh->gw6_sa.sin6_addr.s6_addr32[3] :
222 nh->gw4_sa.sin_addr.s_addr
257 "going to resize: nh:[ptr:%p sz:%u] idx:[ptr:%p sz:%u]",
H A Droute_ddb.c134 struct nhop_object *nh; local
139 nh = (struct nhop_object *)rt->rt_nhop;
145 if ((nh->nh_ifp->if_flags & IFF_DYING) == 0) {
146 rt_dumpaddr_ddb("ifp", nh->nh_ifp->if_addr->ifa_addr);
147 rt_dumpaddr_ddb("ifa", nh->nh_ifa->ifa_addr);
151 flags = rt->rte_flags | nhop_get_rtflags(nh);
H A Droute_rtentry.c108 struct nhop_object *nh = rt->rt_nhop; local
116 if (NH_IS_NHGRP(nh)) {
119 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops);
120 nh = wn[0].nh;
123 CURVNET_SET(nhop_get_vnet(nh));
H A Dnhgrp_ctl.c91 uint32_t a_idx = w_a->nh->nh_priv->nh_idx;
92 uint32_t b_idx = w_b->nh->nh_priv->nh_idx;
248 FIB_NH_LOG(LOG_DEBUG3, x[0].nh, "sum: %lu, slots: %d",
261 FIB_NH_LOG(LOG_DEBUG3, x[0].nh,
268 dst->nhops[slot_idx++] = x[i].nh;
294 FIB_NH_LOG(LOG_INFO, wn[0].nh,
315 FIB_NH_LOG(LOG_DEBUG, wn[0].nh, "num_nhops: %d, compiled_nhop: %u",
405 FIB_NH_LOG(LOG_DEBUG2, nhg_priv->nhg_nh_weights[0].nh,
432 if (nhop_try_ref_object(nhg_priv->nhg_nh_weights[i].nh) != 0)
440 nhop_free(nhg_priv->nhg_nh_weights[j].nh);
[all...]
H A Dfib_algo.c203 static uint32_t fib_ref_nhop(struct fib_data *fd, struct nhop_object *nh);
204 static void fib_unref_nhop(struct fib_data *fd, struct nhop_object *nh);
663 struct nhop_object *nh; local
668 nh = rc->rc_nh_new;
669 if (!NH_IS_NHGRP(nh)) {
670 if (!(nh->nh_flags & NHF_GATEWAY))
672 if (nhop_get_rtflags(nh) & RTF_STATIC)
677 nh = rc->rc_nh_old;
678 if (!NH_IS_NHGRP(nh)) {
679 if (!(nh
967 struct nhop_object *nh = rt_get_raw_nhop(rt); local
1764 get_nhop_idx(struct nhop_object *nh) argument
1775 fib_get_nhop_idx(struct fib_data *fd, struct nhop_object *nh) argument
1789 fib_ref_nhop(struct fib_data *fd, struct nhop_object *nh) argument
1810 struct nhop_object *nh; member in struct:nhop_release_data
1832 fib_schedule_release_nhop(struct fib_data *fd, struct nhop_object *nh) argument
1850 fib_unref_nhop(struct fib_data *fd, struct nhop_object *nh) argument
[all...]
H A Droute_debug.h77 * LOG_DEBUG2 - more debug. Per-item level (nhg,nh,route) debug, up to multiple lines per item.
91 * Example: [nhop_neigh] inet.0 find_lle: nhop nh#4/inet/vtnet0/10.0.0.1: mapped to lle NULL
165 char *nhop_print_buf(const struct nhop_object *nh, char *buf, size_t bufsize);
166 char *nhop_print_buf_any(const struct nhop_object *nh, char *buf, size_t bufsize);
/freebsd-current/sys/netinet/
H A Dtcp_offload.c66 struct nhop_object *nh; local
78 nh = NULL;
81 nh = fib4_lookup(0, ((struct sockaddr_in *)nam)->sin_addr,
89 nh = fib6_lookup(0, &((struct sockaddr_in6 *)nam)->sin6_addr,
92 if (nh == NULL) {
97 ifp = nh->nh_ifp;
106 error = tod->tod_connect(tod, so, nh, nam);
H A Din_fib_algo.c77 struct nhop_object *nh; member in struct:bsearch4_record
119 return (br->nh);
123 return (bd->br[start].nh);
211 rr->nh = rt_get_raw_nhop(rt);
271 * stack: 10.0.1.0/24,nh=3 array: 10.0.1.0/25,nh=4 -> ++10.0.1.128/24,nh=3
301 .nh = pstack->nh,
344 * Example: last: 10.0.0.1(/32,nh
683 struct nhop_object *nh; local
[all...]
H A Dip_output.c288 rt_update_ro_flags(struct route *ro, const struct nhop_object *nh) argument
290 int nh_flags = nh->nh_flags;
489 struct nhop_object *nh = ro->ro_nh; local
491 ia = ifatoia(nh->nh_ifa);
492 ifp = nh->nh_ifp;
493 counter_u64_add(nh->nh_pksent, 1);
494 rt_update_ro_flags(ro, nh);
495 if (nh->nh_flags & NHF_GATEWAY)
496 gw = &nh->gw_sa;
497 if (nh
506 struct nhop_object *nh; local
[all...]
/freebsd-current/sys/ofed/drivers/infiniband/core/
H A Dib_addr.c277 struct nhop_object *nh; local
306 nh = fib4_lookup(RT_DEFAULT_FIB, dst_tmp.sin_addr,0,NHR_NONE,0);
307 if (nh == NULL) {
337 } else if (if_getflags(nh->nh_ifp) & IFF_LOOPBACK) {
350 ifp = nh->nh_ifp;
352 } else if (ifp != nh->nh_ifp) {
363 if (if_getflags(nh->nh_ifp) & IFF_LOOPBACK)
366 saddr = nh->nh_ifa->ifa_addr;
369 ifp = nh->nh_ifp;
384 bool is_gw = (nh
460 struct nhop_object *nh; local
[all...]
/freebsd-current/sys/netinet6/
H A Din6_src.c647 struct nhop_object *nh = NULL; local
657 nh = cache_route(fibnum, sin6_next, ron, flowid);
663 if (nh != NULL && (nh->nh_flags & NHF_GATEWAY) != 0)
664 nh = NULL;
666 nh = cache_route(fibnum, dst, ro, flowid);
667 if (nh == NULL)
676 if (nh->nh_aifp->if_index != pi->ipi6_ifindex)
677 nh = NULL;
681 return (nh);
735 struct nhop_object *nh = lookup_route(fibnum, dstsock, ro, opts, flowid); local
771 struct nhop_object *nh = NULL; local
850 struct nhop_object *nh; local
[all...]
H A Din6_fib_algo.c174 struct nhop_object *nh; local
176 nh = rt_get_raw_nhop(rt);
184 ae->nhop = nh;
253 struct nhop_object *nh; local
264 nh = NULL;
268 nh = (RNTORT(rn))->rt_nhop;
271 return (nh);
/freebsd-current/sys/contrib/libfdt/
H A Dfdt_sw.c172 struct fdt_node_header *nh; local
177 nh = fdt_grab_space_(fdt, sizeof(*nh) + FDT_TAGALIGN(namelen));
178 if (! nh)
181 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE);
182 memcpy(nh->name, name, namelen);
H A Dfdt_rw.c350 struct fdt_node_header *nh; local
372 nh = fdt_offset_ptr_w_(fdt, offset);
373 nodelen = sizeof(*nh) + FDT_TAGALIGN(namelen+1) + FDT_TAGSIZE;
375 err = fdt_splice_struct_(fdt, nh, 0, nodelen);
379 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE);
380 memset(nh->name, 0, FDT_TAGALIGN(namelen+1));
381 memcpy(nh->name, name, namelen);
382 endtag = (fdt32_t *)((char *)nh + nodelen - FDT_TAGSIZE);
/freebsd-current/contrib/tcpdump/
H A Dprint-ip.c469 uint8_t nh = GET_U_1(ip->ip_p); local
471 if (nh != IPPROTO_TCP && nh != IPPROTO_UDP &&
472 nh != IPPROTO_SCTP && nh != IPPROTO_DCCP) {
488 off & IP_MF, GET_U_1(ip->ip_ttl), nh, bp);
/freebsd-current/sys/contrib/openzfs/include/sys/
H A Dzfs_refcount.h130 #define zfs_refcount_transfer_ownership(rc, ch, nh) ((void)0)
131 #define zfs_refcount_transfer_ownership_many(rc, nr, ch, nh) ((void)0)
/freebsd-current/usr.bin/sort/
H A Dcoll.c839 kv1->hint->v.nh.n1 = wcstoull(smain1, NULL, 10);
841 kv1->hint->v.nh.empty=true;
842 kv1->hint->v.nh.si = SI1;
843 kv1->hint->status = (kv1->hint->v.nh.n1 != ULLONG_MAX) ?
845 kv1->hint->v.nh.neg = (sign1 < 0) ? true : false;
852 kv2->hint->v.nh.n1 = wcstoull(smain2, NULL, 10);
854 kv2->hint->v.nh.empty=true;
855 kv2->hint->v.nh.si = SI2;
856 kv2->hint->status = (kv2->hint->v.nh.n1 != ULLONG_MAX) ?
858 kv2->hint->v.nh
[all...]
/freebsd-current/contrib/libedit/
H A Dhistory.c723 history_set_fun(TYPE(History) *h, TYPE(History) *nh)
727 if (nh->h_first == NULL || nh->h_next == NULL || nh->h_last == NULL ||
728 nh->h_prev == NULL || nh->h_curr == NULL || nh->h_set == NULL ||
729 nh->h_enter == NULL || nh->h_add == NULL || nh
[all...]
/freebsd-current/sys/dev/sfxge/
H A Dsfxge_rx.c385 struct ip *iph = c->nh;
393 struct ip6_hdr *iph = c->nh;
478 struct ip *iph = c->nh;
482 struct ip6_hdr *iph = c->nh;
499 struct mbuf *mbuf, void *nh, struct tcphdr *th)
504 c->nh = nh;
511 struct ip *iph = nh;
514 struct ip6_hdr *iph = nh;
627 uint16_t l2_id, void *nh, struc
498 sfxge_lro_start(struct sfxge_lro_state *st, struct sfxge_lro_conn *c, struct mbuf *mbuf, void *nh, struct tcphdr *th) argument
626 sfxge_lro_new_conn(struct sfxge_lro_state *st, uint32_t conn_hash, uint16_t l2_id, void *nh, struct tcphdr *th) argument
677 void *nh; local
[all...]
/freebsd-current/tests/sys/netinet6/
H A Dmld.py65 sp.IPv6(dst="ff02::1", hlim=1, nh=0) / \
/freebsd-current/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c623 struct nhop_object *nh; local
626 nh = fib6_lookup(M_GETFIB(m), &dst->sin6_addr, 0, NHR_NONE, 0);
627 if (nh == NULL)
629 if (nh->nh_flags & (NHF_BLACKHOLE | NHF_REJECT))
634 if (nh->nh_flags & NHF_GATEWAY)
635 dst->sin6_addr = nh->gw6_sa.sin6_addr;
639 return (nh);
770 struct nhop_object *nh; local
773 nh = fib4_lookup(M_GETFIB(m), dst->sin_addr, 0, NHR_NONE, 0);
774 if (nh
1227 struct nhop_object *nh; local
1562 struct nhop_object *nh; local
[all...]
/freebsd-current/sbin/route/
H A Droute_netlink.c475 struct rta_mpath_nh *nh, bool first)
478 if (nh->gw != NULL) {
480 print_prefix(h, gwbuf, sizeof(gwbuf), nh->gw, -1);
484 if (nh->ifindex != 0) {
487 get_ifdata(h, nh->ifindex, &link);
488 if (nh->rtax_mtu == 0)
489 nh->rtax_mtu = link.ifla_mtu;
491 if (nh->rtax_mtu != 0)
492 printf("mtu %d ", nh->rtax_mtu);
548 struct rta_mpath_nh *nh local
474 print_nlmsg_route_nhop(struct nl_helper *h, struct snl_parsed_route *r, struct rta_mpath_nh *nh, bool first) argument
556 struct rta_mpath_nh nh = { local
844 struct rta_mpath_nh *nh = r->rta_multipath.nhops[i]; local
[all...]

Completed in 276 milliseconds

12345