/freebsd/sys/net/route/ |
H A D | nhop_ctl.c | 86 static int dump_nhop_entry(struct rib_head *rh, struct nhop_object *nh, struct sysctl_req *w); 88 static int finalize_nhop(struct nh_control *ctl, struct nhop_object *nh, bool link); 89 static struct ifnet *get_aifp(const struct nhop_object *nh); 93 static void destroy_nhop(struct nhop_object *nh); 126 get_aifp(const struct nhop_object *nh) in get_aifp() argument 137 if ((nh->nh_ifp->if_flags & IFF_LOOPBACK) && in get_aifp() 138 nh->gw_sa.sa_family == AF_LINK) { in get_aifp() 139 aifp = ifnet_byindex(nh->gwl_sa.sdl_index); in get_aifp() 141 FIB_NH_LOG(LOG_WARNING, nh, "unable to get aifp for %s index %d", in get_aifp() 142 if_name(nh->nh_ifp), nh->gwl_sa.sdl_index); in get_aifp() [all …]
|
H A D | nhop.h | 165 struct nhop_object *nh; member 170 void nhop_free(struct nhop_object *nh); 181 void nhop_copy(struct nhop_object *nh, const struct nhop_object *nh_orig); 182 struct nhop_object *nhop_get_nhop(struct nhop_object *nh, int *perror); 183 int nhop_get_unlinked(struct nhop_object *nh); 185 void nhop_set_direct_gw(struct nhop_object *nh, struct ifnet *ifp); 186 bool nhop_set_gw(struct nhop_object *nh, const struct sockaddr *sa, bool is_gw); 189 void nhop_set_mtu(struct nhop_object *nh, uint32_t mtu, bool from_user); 190 void nhop_set_rtflags(struct nhop_object *nh, int rt_flags); 191 void nhop_set_pxtype_flag(struct nhop_object *nh, int nh_flag); [all …]
|
H A D | route_ctl.c | 101 static int nhop_get_prio(const struct nhop_object *nh); 191 nhop_can_multipath(const struct nhop_object *nh) in nhop_can_multipath() argument 194 if ((nh->nh_flags & NHF_MULTIPATH) != 0) in nhop_can_multipath() 196 if ((nh->nh_flags & NHF_GATEWAY) == 0) in nhop_can_multipath() 198 if ((nh->nh_flags & NHF_REDIRECT) != 0) in nhop_can_multipath() 238 nhop_get_prio(const struct nhop_object *nh) in nhop_get_prio() argument 240 if (NH_IS_PINNED(nh)) in nhop_get_prio() 246 * Check if specified @gw matches gw data in the nexthop @nh. 251 match_nhop_gw(const struct nhop_object *nh, const struct sockaddr *gw) in match_nhop_gw() argument 254 if (nh->gw_sa.sa_family != gw->sa_family) in match_nhop_gw() [all …]
|
H A D | route_var.h | 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); [all …]
|
H A D | route_ifaddrs.c | 76 struct nhop_object *nh; in rib_handle_ifaddr_one() local 82 nh = nhop_select(rc.rc_nh_new, 0); in rib_handle_ifaddr_one() 84 nh = nhop_select(rc.rc_nh_old, 0); in rib_handle_ifaddr_one() 85 rt_routemsg(cmd, rc.rc_rt, nh, fibnum); in rib_handle_ifaddr_one() 197 match_kernel_route(const struct rtentry *rt, struct nhop_object *nh) in match_kernel_route() argument 199 if (!NH_IS_NHGRP(nh) && (nhop_get_rtflags(nh) & RTF_PINNED) && in match_kernel_route() 200 nh->nh_aifp->if_fib == nhop_get_fibnum(nh)) in match_kernel_route() 208 struct nhop_object *nh = rt->rt_nhop; in pick_kernel_route() local 211 if (match_kernel_route(rt, nh)) { in pick_kernel_route() 214 .rnd_nhop = nh, in pick_kernel_route()
|
H A D | route_helpers.c | 233 struct nhop_object *nh; in rib_lookup() local 235 nh = NULL; in rib_lookup() 242 nh = fib4_lookup(fibnum, a->sin_addr, 0, flags, flowid); in rib_lookup() 250 nh = fib6_lookup(fibnum, &a->sin6_addr, a->sin6_scope_id, in rib_lookup() 257 return (nh); in rib_lookup() 265 rc->rc_nh_new = wn_src->nh; in notify_add() 270 FIB_NH_LOG(LOG_DEBUG2, wn_src->nh, "RTM_ADD for %s @ w=%u", in notify_add() 271 nhop_print_buf(wn_src->nh, nhbuf, sizeof(nhbuf)), in notify_add() 281 rc->rc_nh_old = wn_src->nh; in notify_del() 286 FIB_NH_LOG(LOG_DEBUG2, wn_src->nh, "RTM_DEL for %s @ w=%u", in notify_del() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | BuiltinsAArch64.def | 144 TARGET_HEADER_BUILTIN(_BitScanForward, "UcUNi*UNi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "") 145 TARGET_HEADER_BUILTIN(_BitScanReverse, "UcUNi*UNi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "") 146 TARGET_HEADER_BUILTIN(_BitScanForward64, "UcUNi*ULLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "") 147 TARGET_HEADER_BUILTIN(_BitScanReverse64, "UcUNi*ULLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "") 149 TARGET_HEADER_BUILTIN(_InterlockedAdd, "NiNiD*Ni", "nh", INTRIN_H, ALL_MS_LANGUAGES, "… 150 TARGET_HEADER_BUILTIN(_InterlockedAdd64, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "… 151 TARGET_HEADER_BUILTIN(_InterlockedAnd64, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "… 152 TARGET_HEADER_BUILTIN(_InterlockedDecrement64, "LLiLLiD*", "nh", INTRIN_H, ALL_MS_LANGUAGES, "… 153 TARGET_HEADER_BUILTIN(_InterlockedExchange64, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "… 154 TARGET_HEADER_BUILTIN(_InterlockedExchangeAdd64, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "… [all …]
|
H A D | BuiltinsARM.def | 234 TARGET_HEADER_BUILTIN(_BitScanForward, "UcUNi*UNi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "") 235 TARGET_HEADER_BUILTIN(_BitScanReverse, "UcUNi*UNi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "") 236 TARGET_HEADER_BUILTIN(_BitScanForward64, "UcUNi*ULLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "") 237 TARGET_HEADER_BUILTIN(_BitScanReverse64, "UcUNi*ULLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "") 239 TARGET_HEADER_BUILTIN(_InterlockedAnd64, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "… 240 TARGET_HEADER_BUILTIN(_InterlockedDecrement64, "LLiLLiD*", "nh", INTRIN_H, ALL_MS_LANGUAGES, "… 241 TARGET_HEADER_BUILTIN(_InterlockedExchange64, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "… 242 TARGET_HEADER_BUILTIN(_InterlockedExchangeAdd64, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "… 243 TARGET_HEADER_BUILTIN(_InterlockedExchangeSub64, "LLiLLiD*LLi", "nh", INTRIN_H, ALL_MS_LANGUAGES, "… 244 TARGET_HEADER_BUILTIN(_InterlockedIncrement64, "LLiLLiD*", "nh", INTRIN_H, ALL_MS_LANGUAGES, "… [all …]
|
/freebsd/sys/netlink/route/ |
H A D | rt.c | 55 get_rtm_type(const struct nhop_object *nh) in get_rtm_type() argument 57 int nh_flags = nh->nh_flags; in get_rtm_type() 68 nl_get_rtm_protocol(const struct nhop_object *nh) in nl_get_rtm_protocol() argument 71 if (NH_IS_NHGRP(nh)) { in nl_get_rtm_protocol() 72 const struct nhgrp_object *nhg = (const struct nhgrp_object *)nh; in nl_get_rtm_protocol() 76 nh = nhg->nhops[0]; in nl_get_rtm_protocol() 79 uint8_t origin = nhop_get_origin(nh); in nl_get_rtm_protocol() 83 int rt_flags = nhop_get_rtflags(nh); in nl_get_rtm_protocol() 124 dump_rc_nhop_gw(struct nl_writer *nw, const struct nhop_object *nh) in dump_rc_nhop_gw() argument 130 switch (nhop_get_neigh_family(nh)) { in dump_rc_nhop_gw() 162 dump_rc_nhop_mtu(struct nl_writer * nw,const struct nhop_object * nh) dump_rc_nhop_mtu() argument 229 const struct nhop_object *nh = rnd->rnd_nhop; dump_rc_nhop() local 700 finalize_nhop(struct nhop_object * nh,const struct sockaddr * dst,int * perror) finalize_nhop() argument 814 struct nhop_object *nh = nhop_alloc(attrs->rta_table, attrs->rtm_family); create_nexthop_one() local 840 struct nhop_object *nh = NULL; create_nexthop_from_attrs() local 929 struct nhop_object *nh = NULL; rtnl_handle_newroute() local 979 path_match_func(const struct rtentry * rt,const struct nhop_object * nh,void * _data) path_match_func() argument [all...] |
H A D | nexthop.c | 176 struct nhop_object *nh = unhop->un_nhop; in nl_find_nhop() local 179 nhop_ref_any(nh); in nl_find_nhop() 180 return (nh); in nl_find_nhop() 229 struct nhop_object *nh; in nl_find_nhop() local 232 nh = un_tmp->un_nhop; in nl_find_nhop() 235 nh = un_new->un_nhop; in nl_find_nhop() 240 NL_LOG(LOG_DEBUG2, "linked cloned nexthop %p", nh); in nl_find_nhop() 249 nhop_ref_any(nh); in nl_find_nhop() 250 return (nh); in nl_find_nhop() 276 struct nhop_object *nh = NULL; in clone_unhop() local [all …]
|
/freebsd/sys/netinet/ |
H A D | in_fib.c | 115 struct nhop_object *nh; in fib4_lookup() local 119 nh = dp->f(dp->arg, key, scopeid); in fib4_lookup() 120 if (nh != NULL) { in fib4_lookup() 121 nh = nhop_select(nh, flowid); in fib4_lookup() 123 if (RT_LINK_IS_UP(nh->nh_ifp)) { in fib4_lookup() 125 nhop_ref_object(nh); in fib4_lookup() 126 return (nh); in fib4_lookup() 140 struct nhop_object *nh; in fib4_lookup() local 154 nh = NULL; in fib4_lookup() 158 nh = nhop_select((RNTORT(rn))->rt_nhop, flowid); in fib4_lookup() [all …]
|
H A D | in_rmx.c | 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() [all …]
|
H A D | ip_fastfwd.c | 108 ip_redir_alloc(struct mbuf *m, struct nhop_object *nh, u_short ip_len, in ip_redir_alloc() argument 114 KASSERT(nh != NULL, ("%s: m %p nh is NULL\n", __func__, m)); in ip_redir_alloc() 135 if ((nh->nh_flags & (NHF_DEFAULT | NHF_REDIRECT | in ip_redir_alloc() 140 if ((nh->nh_flags & NHF_GATEWAY) == 0 || nh->gw_sa.sa_family != AF_INET) in ip_redir_alloc() 142 newgw->s_addr = nh->gw4_sa.sin_addr.s_addr; in ip_redir_alloc() 159 nh_ia = (struct in_ifaddr *)nh->nh_ifa; in ip_redir_alloc() 194 struct nhop_object *nh; in ip_findroute() local 196 nh = fib4_lookup(M_GETFIB(m), dest, 0, NHR_NONE, in ip_findroute() 198 if (nh == NULL) { in ip_findroute() 207 if ((nh->nh_flags & (NHF_BLACKHOLE | NHF_BROADCAST)) != 0) { in ip_findroute() [all …]
|
H A D | in_fib_algo.c | 77 struct nhop_object *nh; member 119 return (br->nh); in bsearch4_lookup() 123 return (bd->br[start].nh); in bsearch4_lookup() 211 rr->nh = rt_get_raw_nhop(rt); in bsearch4_add_route_cb() 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, in pop_stack_entry() 344 * Example: last: 10.0.0.1(/32,nh=3) cur: 10.0.0.3(/32,nh=4), in bsearch4_process_record() 345 * stack: 10.0.0.0/24,nh=2. in bsearch4_process_record() 357 .nh = pst->nh, in bsearch4_process_record() 366 * 10.0.0.0(/24,nh=3), 10.0.0.0(/25,nh=4) in bsearch4_process_record() [all …]
|
/freebsd/sys/netinet6/ |
H A D | in6_fib.c | 123 struct nhop_object *nh; in fib6_lookup() local 127 nh = dp->f(dp->arg, key, scopeid); in fib6_lookup() 128 if (nh != NULL) { in fib6_lookup() 129 nh = nhop_select(nh, flowid); in fib6_lookup() 131 if (RT_LINK_IS_UP(nh->nh_ifp)) { in fib6_lookup() 133 nhop_ref_object(nh); in fib6_lookup() 134 return (nh); in fib6_lookup() 148 struct nhop_object *nh; in fib6_lookup() local 167 nh = nhop_select((RNTORT(rn))->rt_nhop, flowid); in fib6_lookup() 169 if (RT_LINK_IS_UP(nh->nh_ifp)) { in fib6_lookup() [all …]
|
H A D | ip6_fastfwd.c | 61 struct nhop_object *nh; in ip6_findroute() local 63 nh = fib6_lookup(M_GETFIB(m), &dst->sin6_addr, in ip6_findroute() 65 if (nh == NULL) { in ip6_findroute() 72 if (nh->nh_flags & NHF_BLACKHOLE) { in ip6_findroute() 78 if (nh->nh_flags & NHF_REJECT) { in ip6_findroute() 85 *pnh = nh; in ip6_findroute() 94 struct nhop_object *nh; in ip6_tryforward() local 199 if (ip6_findroute(&nh, &dst, m) != 0) { in ip6_tryforward() 205 if (m->m_pkthdr.len > nh->nh_mtu) { in ip6_tryforward() 206 in6_ifstat_inc(nh in ip6_tryforward() [all...] |
H A D | ip6_forward.c | 95 struct nhop_object *nh = NULL; in ip6_forward() local 185 nh = fib6_lookup(M_GETFIB(m), &dst.sin6_addr, dst.sin6_scope_id, in ip6_forward() 187 if (nh == NULL) { in ip6_forward() 197 if (nh->nh_flags & (NHF_BLACKHOLE | NHF_REJECT)) { in ip6_forward() 200 if (nh->nh_flags & NHF_REJECT) { in ip6_forward() 217 outzone = in6_get_unicast_scopeid(&ip6->ip6_src, nh->nh_ifp); in ip6_forward() 222 in6_ifstat_inc(nh->nh_ifp, ifs6_in_discard); in ip6_forward() 231 if_name(m->m_pkthdr.rcvif), if_name(nh->nh_ifp)); in ip6_forward() 247 outzone = in6_get_unicast_scopeid(&ip6->ip6_dst, nh->nh_ifp); in ip6_forward() 255 if (nh->nh_flags & NHF_GATEWAY) { in ip6_forward() [all …]
|
H A D | in6_rmx.c | 95 struct nhop_object *nh) in rib6_set_nh_pfxflags() 100 nhop_set_pxtype_flag(nh, NHF_HOST); in rib6_set_nh_pfxflags() 102 nhop_set_pxtype_flag(nh, NHF_DEFAULT); in rib6_set_nh_pfxflags() 104 nhop_set_pxtype_flag(nh, 0); in rib6_set_nh_pfxflags() 110 rib6_augment_nh(u_int fibnum, struct nhop_object *nh) 117 if (nh->nh_mtu == 0) { in rib6_augment_nh() 118 nh->nh_mtu = IN6_LINKMTU(nh->nh_ifp); in rib6_augment_nh() 119 } else if (nh->nh_mtu > IN6_LINKMTU(nh in rib6_augment_nh() 96 rib6_set_nh_pfxflags(u_int fibnum,const struct sockaddr * addr,const struct sockaddr * mask,struct nhop_object * nh) rib6_set_nh_pfxflags() argument 111 rib6_augment_nh(u_int fibnum,struct nhop_object * nh) rib6_augment_nh() argument [all...] |
/freebsd/contrib/tcpdump/ |
H A D | print-cnfp.c | 157 const struct nfhdr_v1 *nh; in cnfp_v1_print() local 166 nh = (const struct nfhdr_v1 *)cp; in cnfp_v1_print() 167 ND_TCHECK_SIZE(nh); in cnfp_v1_print() 169 ver = GET_BE_U_2(nh->version); in cnfp_v1_print() 170 nrecs = GET_BE_U_4(nh->count); in cnfp_v1_print() 177 t = GET_BE_U_4(nh->utc_sec); in cnfp_v1_print() 181 GET_BE_U_4(nh->msys_uptime)/1000, in cnfp_v1_print() 182 GET_BE_U_4(nh->msys_uptime)%1000, in cnfp_v1_print() 183 GET_BE_U_4(nh->utc_sec), GET_BE_U_4(nh->utc_nsec)); in cnfp_v1_print() 185 nr = (const struct nfrec_v1 *)&nh[1]; in cnfp_v1_print() [all …]
|
H A D | print-ip6.c | 50 u_int nh; in ip6_finddst() local 60 nh = GET_U_1(ip6->ip6_nxt); in ip6_finddst() 66 switch (nh) { in ip6_finddst() 79 nh = GET_U_1(cp); in ip6_finddst() 89 nh = GET_U_1(cp); in ip6_finddst() 183 u_int nh; in nextproto6_cksum() local 188 nh = GET_U_1(ip6->ip6_nxt); in nextproto6_cksum() 189 switch (nh) { in nextproto6_cksum() 232 uint8_t ph, nh; in ip6_print() local 285 nh = GET_U_1(ip6->ip6_nxt); in ip6_print() [all …]
|
H A D | print-ip-demux.c | 39 uint8_t nh, const u_char *iph) in ip_demux_print() argument 47 switch (nh) { in ip_demux_print() 55 nh = GET_U_1(bp); in ip_demux_print() 108 tok2str(ipproto_values,"unknown",nh)); in ip_demux_print() 118 tok2str(ipproto_values,"unknown",nh)); in ip_demux_print() 164 tok2str(ipproto_values,"unknown",nh)); in ip_demux_print() 212 tok2str(ipproto_values,"unknown",nh)); in ip_demux_print() 228 if (ndo->ndo_nflag==0 && (p_name = netdb_protoname(nh)) != NULL) in ip_demux_print() 231 ND_PRINT(" ip-proto-%u", nh); in ip_demux_print()
|
/freebsd/usr.bin/netstat/ |
H A D | nhops.c | 237 print_nhop_entry_sysctl(const char *name, struct rt_msghdr *rtm, struct nhop_external *nh) in print_nhop_entry_sysctl() argument 249 //xo_emit("{t:index/%-lu} ", wid_nhidx, nh->nh_idx); in print_nhop_entry_sysctl() 250 xo_emit(buffer, nh->nh_idx); in print_nhop_entry_sysctl() 253 char *cp = nh_types[nh->nh_type]; in print_nhop_entry_sysctl() 257 if (nh->ifindex < (uint32_t)ifmap_size) { in print_nhop_entry_sysctl() 258 strlcpy(iface_name, ifmap[nh->ifindex].ifname, in print_nhop_entry_sysctl() 264 na = (struct nhop_addrs *)((char *)nh + nh->nh_len); in print_nhop_entry_sysctl() 265 //inet_ntop(nh->nh_family, &nh->nh_src, src_addr, sizeof(src_addr)); in print_nhop_entry_sysctl() 271 if (nh->nh_flags & NHF_GATEWAY) { in print_nhop_entry_sysctl() 279 nhop_map_update(&global_nhop_map, nh->nh_idx, gw_addr, iface_name); in print_nhop_entry_sysctl() [all …]
|
H A D | nhgrp.c | 161 // nh index in print_nhgroup_entry_sysctl() 162 xo_emit("{t:nh-index/%*lu}", wid_nhidx, ext_cp[i].nh_idx); in print_nhgroup_entry_sysctl() 163 xo_emit("{t:nh-weight/%*lu}", wid_nhidx, ext_cp[i].nh_weight); in print_nhgroup_entry_sysctl() 164 xo_emit("{t:nh-slots/%*lu}", wid_nhidx, slots); in print_nhgroup_entry_sysctl() 167 xo_emit("{t:nh-gw/%*.*s}", wid_gw, wid_gw, ne->gw); in print_nhgroup_entry_sysctl() 168 xo_emit("{t:nh-interface/%*.*s}", wid_if, wid_if, ne->ifname); in print_nhgroup_entry_sysctl() 280 update_global_map(struct nhop_external *nh) in update_global_map() argument 287 na = (struct nhop_addrs *)((char *)nh + nh->nh_len); in update_global_map() 291 if (nh->ifindex < (uint32_t)ifmap_size) { in update_global_map() 292 strlcpy(iface_name, ifmap[nh->ifindex].ifname, in update_global_map() [all …]
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_addr.c | 277 struct nhop_object *nh; in addr4_resolve() local 306 nh = fib4_lookup(RT_DEFAULT_FIB, dst_tmp.sin_addr,0,NHR_NONE,0); in addr4_resolve() 307 if (nh == NULL) { in addr4_resolve() 337 } else if (if_getflags(nh->nh_ifp) & IFF_LOOPBACK) { in addr4_resolve() 350 ifp = nh->nh_ifp; in addr4_resolve() 352 } else if (ifp != nh->nh_ifp) { in addr4_resolve() 363 if (if_getflags(nh->nh_ifp) & IFF_LOOPBACK) in addr4_resolve() 366 saddr = nh->nh_ifa->ifa_addr; in addr4_resolve() 369 ifp = nh->nh_ifp; in addr4_resolve() 384 bool is_gw = (nh->nh_flags & NHF_GATEWAY) != 0; in addr4_resolve() [all …]
|
/freebsd/sys/net/ |
H A D | rtsock.c | 204 static int sysctl_dumpnhop(struct rtentry *rt, struct nhop_object *nh, 209 const struct nhop_object *nh, struct rt_metrics *out); 216 struct rib_cmd_info *rc, struct nhop_object *nh); 281 struct nhop_object *nh; in report_route_event() local 283 nh = rc->rc_cmd == RTM_DELETE ? rc->rc_nh_old : rc->rc_nh_new; in report_route_event() 284 rt_routemsg(rc->rc_cmd, rc->rc_rt, nh, fibnum); in report_route_event() 512 struct nhop_object *nh, union sockaddr_union *saun, struct ucred *cred) in rtm_get_jailed() argument 519 if (prison_if(cred, nh->nh_ifa->ifa_addr) == 0) { in rtm_get_jailed() 520 info->rti_info[RTAX_IFA] = nh->nh_ifa->ifa_addr; in rtm_get_jailed() 554 ia = ((struct sockaddr_in *)nh->nh_ifa->ifa_addr)-> in rtm_get_jailed() [all …]
|