Searched refs:nh (Results 1 - 25 of 61) sorted by relevance

123

/freebsd-11-stable/sys/netpfil/ipfw/nat64/
H A Dnat64lsn.c100 struct nat64lsn_host *nh; member in struct:nat64lsn_job_item
140 static void destroy_host6(struct nat64lsn_host *nh);
154 struct nat64lsn_host *nh);
327 struct nat64lsn_host *nh; local
382 nh = pg->host;
394 NAT64_LOCK(nh);
403 NAT64_UNLOCK(nh);
413 ret = nat64_do_handle_ip4(*pm, &src6, &nh->addr, lport,
516 st_first(const struct nat64lsn_cfg *cfg, const struct nat64lsn_host *nh, argument
527 pg = PORTGROUP_BYSIDX(cfg, nh, sid
538 st_next(const struct nat64lsn_cfg *cfg, const struct nat64lsn_host *nh, struct st_idx *si) argument
573 nat64lsn_periodic_chkstates(struct nat64lsn_cfg *cfg, struct nat64lsn_host *nh) argument
628 stale_nh(const struct nat64lsn_cfg *cfg, const struct nat64lsn_host *nh) argument
645 nat64lsn_periodic_chkhost(struct nat64lsn_host *nh, struct nat64lsn_periodic_data *d) argument
717 struct nat64lsn_host *nh, *tmp; local
797 destroy_host6(struct nat64lsn_host *nh) argument
814 struct nat64lsn_host *nh; local
848 find_nh_pg_idx(struct nat64lsn_cfg *cfg, struct nat64lsn_host *nh, int *idx) argument
865 struct nat64lsn_host *nh; local
984 struct nat64lsn_host *nh; local
1046 struct nat64lsn_host *nh, *nh_tmp; local
1402 nat64lsn_create_state(struct nat64lsn_cfg *cfg, struct nat64lsn_host *nh, int nat_proto, struct nat64lsn_state *kst, uint32_t *aaddr) argument
1458 struct nat64lsn_host *nh; local
1648 struct nat64lsn_host *nh; local
1740 nat64lsn_destroy_host(struct nat64lsn_host *nh, struct nat64lsn_cfg *cfg) argument
1761 struct nat64lsn_host *nh, *tmp; local
[all...]
/freebsd-11-stable/contrib/tcpdump/
H A Dprint-ip6.c52 u_int nh; local
61 nh = ip6->ip6_nxt;
67 switch (nh) {
81 nh = *cp;
92 nh = *cp;
222 int nh; local
281 nh = ip6->ip6_nxt;
289 nh != IPPROTO_TCP && nh != IPPROTO_UDP &&
290 nh !
[all...]
H A Dprint-cnfp.c160 register const struct nfhdr_v1 *nh; local
168 nh = (const struct nfhdr_v1 *)cp;
169 ND_TCHECK(*nh);
171 ver = EXTRACT_16BITS(&nh->version);
172 nrecs = EXTRACT_32BITS(&nh->count);
179 t = EXTRACT_32BITS(&nh->utc_sec);
183 EXTRACT_32BITS(&nh->msys_uptime)/1000,
184 EXTRACT_32BITS(&nh->msys_uptime)%1000,
185 EXTRACT_32BITS(&nh->utc_sec), EXTRACT_32BITS(&nh
249 register const struct nfhdr_v5 *nh; local
345 register const struct nfhdr_v6 *nh; local
[all...]
H A Dprint-ip.c334 u_char nh; member in struct:ip_print_demux_state
345 switch (ipds->nh) {
352 ipds->nh = *ipds->cp;
370 ipds->nh = enh & 0xff;
508 if (ndo->ndo_nflag==0 && (p_name = netdb_protoname(ipds->nh)) != NULL)
511 ND_PRINT((ndo, " ip-proto-%d", ipds->nh));
520 u_int length, u_int nh,
529 ipd.nh = nh;
671 ipds->nh
518 ip_print_inner(netdissect_options *ndo, const u_char *bp, u_int length, u_int nh, const u_char *bp2) argument
[all...]
/freebsd-11-stable/sys/netinet6/
H A Dip6_fastfwd.c89 struct nhop6_basic nh; local
193 if (ip6_findroute(&nh, &dst, m) != 0) {
199 if (m->m_pkthdr.len > nh.nh_mtu) {
200 in6_ifstat_inc(nh.nh_ifp, ifs6_in_toobig);
201 icmp6_error(m, ICMP6_PACKET_TOO_BIG, 0, nh.nh_mtu);
211 if (pfil_run_hooks(&V_inet6_pfil_hook, &m, nh.nh_ifp, PFIL_OUT,
219 if (m->m_pkthdr.len > nh.nh_mtu) {
220 in6_ifstat_inc(nh.nh_ifp, ifs6_in_toobig);
221 icmp6_error(m, ICMP6_PACKET_TOO_BIG, 0, nh.nh_mtu);
261 if (ip6_findroute(&nh,
[all...]
/freebsd-11-stable/contrib/ofed/libibverbs/
H A Dnl1_compat.h33 static inline struct nl_addr *rtnl_route_nh_get_gateway(struct rtnl_nexthop *nh) argument
35 return rtnl_route_get_gateway((struct rtnl_route *)nh);
38 static inline int rtnl_route_nh_get_ifindex(struct rtnl_nexthop *nh) argument
40 return rtnl_route_get_oif((struct rtnl_route *)nh);
/freebsd-11-stable/sys/netinet/
H A Dip_fastfwd.c152 struct nhop4_basic nh; local
311 if (ip_findroute(&nh, dest, m) != 0)
325 if (pfil_run_hooks(&V_inet_pfil_hook, &m, nh.nh_ifp, PFIL_OUT, PFIL_FWD,
365 ip_findroute(&nh, dest, m) != 0)
379 dst.sin_addr = nh.nh_addr;
384 if (ip_len <= nh.nh_mtu) {
392 IP_PROBE(send, NULL, NULL, ip, nh.nh_ifp, ip, NULL);
393 error = (*nh.nh_ifp->if_output)(nh.nh_ifp, m,
402 0, nh
[all...]
/freebsd-11-stable/contrib/libpcap/
H A Dpcap-nit.c108 register struct nit_hdr *nh; local
153 nh = (struct nit_hdr *)bp;
154 cp = bp + sizeof(*nh);
156 switch (nh->nh_state) {
164 pn->stat.ps_drop = nh->nh_dropped;
172 "bad nit state %d", nh->nh_state);
176 bp += ((sizeof(struct nit_hdr) + nh->nh_datalen +
179 caplen = nh->nh_wirelen;
182 if (bpf_filter(p->fcode.bf_insns, cp, nh->nh_wirelen, caplen)) {
184 h.ts = nh
[all...]
/freebsd-11-stable/contrib/llvm-project/libcxx/src/
H A Dnew.cpp71 std::new_handler nh = std::get_new_handler(); variable
72 if (nh)
73 nh();
190 std::new_handler nh = std::get_new_handler(); variable
191 if (nh)
192 nh();
/freebsd-11-stable/contrib/dtc/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.c336 struct fdt_node_header *nh; local
358 nh = _fdt_offset_ptr_w(fdt, offset);
359 nodelen = sizeof(*nh) + FDT_TAGALIGN(namelen+1) + FDT_TAGSIZE;
361 err = _fdt_splice_struct(fdt, nh, 0, nodelen);
365 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE);
366 memset(nh->name, 0, FDT_TAGALIGN(namelen+1));
367 memcpy(nh->name, name, namelen);
368 endtag = (fdt32_t *)((char *)nh + nodelen - FDT_TAGSIZE);
H A Dfdt_ro.c235 const struct fdt_node_header *nh = _fdt_offset_ptr(fdt, nodeoffset); local
243 *len = strlen(nh->name);
245 return nh->name;
/freebsd-11-stable/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-11-stable/lib/libedit/
H A Dhistory.c686 history_set_fun(TYPE(History) *h, TYPE(History) *nh)
690 if (nh->h_first == NULL || nh->h_next == NULL || nh->h_last == NULL ||
691 nh->h_prev == NULL || nh->h_curr == NULL || nh->h_set == NULL ||
692 nh->h_enter == NULL || nh->h_add == NULL || nh
[all...]
/freebsd-11-stable/contrib/libreadline/
H A Dsignals.c70 # define rl_sigaction(s, nh, oh) sigaction(s, nh, oh)
232 rl_sigaction (sig, nh, oh)
234 sighandler_cxt *nh, *oh;
236 oh->sa_handler = signal (sig, nh->sa_handler);
/freebsd-11-stable/usr.bin/sort/
H A Dcoll.c847 kv1->hint->v.nh.n1 = wcstoull(smain1, NULL, 10);
849 kv1->hint->v.nh.empty=true;
850 kv1->hint->v.nh.si = SI1;
851 kv1->hint->status = (kv1->hint->v.nh.n1 != ULLONG_MAX) ?
853 kv1->hint->v.nh.neg = (sign1 < 0) ? true : false;
860 kv2->hint->v.nh.n1 = wcstoull(smain2, NULL, 10);
862 kv2->hint->v.nh.empty=true;
863 kv2->hint->v.nh.si = SI2;
864 kv2->hint->status = (kv2->hint->v.nh.n1 != ULLONG_MAX) ?
866 kv2->hint->v.nh
[all...]
H A Dcoll.h83 struct n_hint nh; member in union:key_hint::__anon8658
/freebsd-11-stable/sys/dev/sfxge/
H A Dsfxge_rx.c386 struct ip *iph = c->nh;
394 struct ip6_hdr *iph = c->nh;
479 struct ip *iph = c->nh;
483 struct ip6_hdr *iph = c->nh;
500 struct mbuf *mbuf, void *nh, struct tcphdr *th)
505 c->nh = nh;
512 struct ip *iph = nh;
515 struct ip6_hdr *iph = nh;
628 uint16_t l2_id, void *nh, struc
499 sfxge_lro_start(struct sfxge_lro_state *st, struct sfxge_lro_conn *c, struct mbuf *mbuf, void *nh, struct tcphdr *th) argument
627 sfxge_lro_new_conn(struct sfxge_lro_state *st, uint32_t conn_hash, uint16_t l2_id, void *nh, struct tcphdr *th) argument
678 void *nh; local
[all...]
H A Dsfxge_rx.h63 * @nh: IP (v4 or v6) header of super-packet
84 void *nh; member in struct:sfxge_lro_conn
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dgetifaddrs.c332 struct nlmsghdr *nh; local
352 nh = (struct nlmsghdr *)buff;
353 for (nh = (struct nlmsghdr *)buff;
354 NLMSG_OK(nh, read_size);
355 nh = (struct nlmsghdr *)NLMSG_NEXT(nh, read_size)){
356 if (nh->nlmsg_pid != pid ||
357 nh->nlmsg_seq != seq)
359 if (nh->nlmsg_type == NLMSG_DONE){
363 if (nh
[all...]
/freebsd-11-stable/contrib/apr/tables/
H A Dapr_skiplist.c444 int ch, top_nh, nh = 1; local
448 while (nh < sl->preheight && get_b_rand()) {
449 nh++;
453 while (nh <= ch && get_b_rand()) {
454 nh++;
457 top_nh = nh;
459 /* Now we have in nh the height at which we wish to insert our new node,
462 * reaches nh. From there, any walk down pushes the current node on a
490 nh = top_nh;
500 if (ch <= nh) {
[all...]
/freebsd-11-stable/sys/fs/nfsserver/
H A Dnfs_nfsdport.c127 struct nfsheur *nh; local
133 nh = &nfsheur[hi];
136 nh = &nfsheur[hi];
142 if (nfsheur[hi].nh_use < nh->nh_use)
143 nh = &nfsheur[hi];
147 if (nh->nh_vp != vp) {
148 nh->nh_vp = vp;
149 nh->nh_nextoff = uio->uio_offset;
150 nh->nh_use = NHUSE_INIT;
152 nh
641 struct nfsheur *nh; local
728 struct nfsheur *nh; local
[all...]
/freebsd-11-stable/usr.sbin/traceroute6/
H A Dtraceroute6.c1463 u_char *cp = (u_char *)ip6, nh; local
1470 nh = ip6->ip6_nxt;
1473 while (lim - cp >= (nh == IPPROTO_NONE ? 0 : 8)) {
1474 switch (nh) {
1478 return (useproto == nh ? cp : NULL);
1482 return (useproto == nh ? cp : NULL);
1484 return (useproto == nh ? none_hdr : NULL);
1487 nh = ((struct ip6_frag *)cp)->ip6f_nxt;
1491 nh = ((struct ip6_ext *)cp)->ip6e_nxt;
1495 nh
[all...]
/freebsd-11-stable/usr.sbin/route6d/
H A Droute6d.c805 struct in6_addr *nh; /* next hop */ local
822 nh = NULL;
833 nh = NULL;
872 nrt = 0; np = ripbuf->rip6_nets; nh = NULL;
894 if (nh == NULL || !IN6_ARE_ADDR_EQUAL(nh, &rrt->rrt_gw)) {
897 nh = NULL;
906 nh = &rrt->rrt_gw;
909 } else if (nh && (rrt->rrt_index != ifcp->ifc_index ||
910 !IN6_ARE_ADDR_EQUAL(nh,
1100 struct in6_addr nh; /* next hop */ local
[all...]

Completed in 362 milliseconds

123