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

123

/freebsd-10.0-release/contrib/tcpdump/
H A Dprint-cnfp.c84 register const struct nfhdr *nh; local
92 nh = (const struct nfhdr *)cp;
94 if ((const u_char *)(nh + 1) > snapend)
97 nrecs = EXTRACT_32BITS(&nh->ver_cnt) & 0xffff;
98 ver = (EXTRACT_32BITS(&nh->ver_cnt) & 0xffff0000) >> 16;
105 t = EXTRACT_32BITS(&nh->utc_sec);
109 EXTRACT_32BITS(&nh->msys_uptime)/1000,
110 EXTRACT_32BITS(&nh->msys_uptime)%1000,
111 EXTRACT_32BITS(&nh->utc_sec), EXTRACT_32BITS(&nh
[all...]
H A Dprint-ip6.c92 int nh; local
146 nh = ip6->ip6_nxt;
152 nh != IPPROTO_TCP && nh != IPPROTO_UDP &&
153 nh != IPPROTO_DCCP && nh != IPPROTO_SCTP) {
158 switch (nh) {
161 nh = *cp;
165 nh = *cp;
171 nh
[all...]
H A Dprint-ip.c319 u_char nh; member in struct:ip_print_demux_state
331 switch (ipds->nh) {
334 ipds->nh = *ipds->cp;
352 ipds->nh = enh & 0xff;
364 ipds->nh = enh & 0xff;
491 if (ndo->ndo_nflag==0 && (proto = getprotobynumber(ipds->nh)) != NULL)
494 ND_PRINT((ndo, " ip-proto-%d", ipds->nh));
503 u_int length, u_int nh,
512 ipd.nh = nh;
501 ip_print_inner(netdissect_options *ndo, const u_char *bp, u_int length, u_int nh, const u_char *bp2) argument
[all...]
H A Dprint-babel.c313 printf(" nh");
316 u_char nh[16]; local
319 rc = network_address(message[2], message + 4, len - 2, nh);
321 printf(" %s", format_address(nh));
H A Dprint-icmp6.c603 u_int nh; local
612 nh = ip6->ip6_nxt;
618 switch(nh) {
623 *prot = nh;
636 nh = hbh->ip6h_nxt;
647 nh = fragh->ip6f_nxt;
655 nh = ah->ah_nxt;
660 *prot = nh; /* meaningless, but set here anyway */
/freebsd-10.0-release/contrib/libpcap/
H A Dpcap-nit.c103 register struct nit_hdr *nh; local
148 nh = (struct nit_hdr *)bp;
149 cp = bp + sizeof(*nh);
151 switch (nh->nh_state) {
159 p->md.stat.ps_drop = nh->nh_dropped;
167 "bad nit state %d", nh->nh_state);
171 bp += ((sizeof(struct nit_hdr) + nh->nh_datalen +
174 caplen = nh->nh_wirelen;
177 if (bpf_filter(p->fcode.bf_insns, cp, nh->nh_wirelen, caplen)) {
179 h.ts = nh
[all...]
/freebsd-10.0-release/contrib/libc++/src/
H A Dnew.cpp54 std::new_handler nh = std::get_new_handler(); local
55 if (nh)
56 nh();
/freebsd-10.0-release/contrib/dtc/libfdt/
H A Dfdt_sw.c140 struct fdt_node_header *nh; local
145 nh = _fdt_grab_space(fdt, sizeof(*nh) + FDT_TAGALIGN(namelen));
146 if (! nh)
149 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE);
150 memcpy(nh->name, name, namelen);
H A Dfdt_rw.c337 struct fdt_node_header *nh; local
359 nh = _fdt_offset_ptr_w(fdt, offset);
360 nodelen = sizeof(*nh) + FDT_TAGALIGN(namelen+1) + FDT_TAGSIZE;
362 err = _fdt_splice_struct(fdt, nh, 0, nodelen);
366 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE);
367 memset(nh->name, 0, FDT_TAGALIGN(namelen+1));
368 memcpy(nh->name, name, namelen);
369 endtag = (uint32_t *)((char *)nh + nodelen - FDT_TAGSIZE);
H A Dfdt_ro.c203 const struct fdt_node_header *nh = _fdt_offset_ptr(fdt, nodeoffset); local
211 *len = strlen(nh->name);
213 return nh->name;
/freebsd-10.0-release/sys/contrib/libfdt/
H A Dfdt_sw.c140 struct fdt_node_header *nh; local
145 nh = _fdt_grab_space(fdt, sizeof(*nh) + FDT_TAGALIGN(namelen));
146 if (! nh)
149 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE);
150 memcpy(nh->name, name, namelen);
H A Dfdt_rw.c337 struct fdt_node_header *nh; local
359 nh = _fdt_offset_ptr_w(fdt, offset);
360 nodelen = sizeof(*nh) + FDT_TAGALIGN(namelen+1) + FDT_TAGSIZE;
362 err = _fdt_splice_struct(fdt, nh, 0, nodelen);
366 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE);
367 memset(nh->name, 0, FDT_TAGALIGN(namelen+1));
368 memcpy(nh->name, name, namelen);
369 endtag = (uint32_t *)((char *)nh + nodelen - FDT_TAGSIZE);
H A Dfdt_ro.c203 const struct fdt_node_header *nh = _fdt_offset_ptr(fdt, nodeoffset); local
211 *len = strlen(nh->name);
213 return nh->name;
/freebsd-10.0-release/lib/libedit/
H A Dhistory.c677 history_set_fun(History *h, History *nh) argument
681 if (nh->h_first == NULL || nh->h_next == NULL || nh->h_last == NULL ||
682 nh->h_prev == NULL || nh->h_curr == NULL || nh->h_set == NULL ||
683 nh->h_enter == NULL || nh->h_add == NULL || nh
[all...]
/freebsd-10.0-release/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-10.0-release/usr.bin/sort/
H A Dcoll.c827 kv1->hint->v.nh.n1 = wcstoull(smain1, NULL, 10);
829 kv1->hint->v.nh.empty=true;
830 kv1->hint->v.nh.si = SI1;
831 kv1->hint->status = (kv1->hint->v.nh.n1 != ULLONG_MAX) ?
833 kv1->hint->v.nh.neg = (sign1 < 0) ? true : false;
840 kv2->hint->v.nh.n1 = wcstoull(smain2, NULL, 10);
842 kv2->hint->v.nh.empty=true;
843 kv2->hint->v.nh.si = SI2;
844 kv2->hint->status = (kv2->hint->v.nh.n1 != ULLONG_MAX) ?
846 kv2->hint->v.nh
[all...]
H A Dcoll.h81 struct n_hint nh; member in union:key_hint::__anon11484
/freebsd-10.0-release/sys/dev/sfxge/
H A Dsfxge_rx.c333 struct ip *iph = c->nh;
341 struct ip6_hdr *iph = c->nh;
425 struct ip *iph = c->nh;
429 struct ip6_hdr *iph = c->nh;
446 struct mbuf *mbuf, void *nh, struct tcphdr *th)
451 c->nh = nh;
458 struct ip *iph = nh;
461 struct ip6_hdr *iph = nh;
574 uint16_t l2_id, void *nh, struc
445 sfxge_lro_start(struct sfxge_lro_state *st, struct sfxge_lro_conn *c, struct mbuf *mbuf, void *nh, struct tcphdr *th) argument
573 sfxge_lro_new_conn(struct sfxge_lro_state *st, uint32_t conn_hash, uint16_t l2_id, void *nh, struct tcphdr *th) argument
624 void *nh; local
[all...]
H A Dsfxge_rx.h68 * @nh: IP (v4 or v6) header of super-packet
89 void *nh; member in struct:sfxge_lro_conn
/freebsd-10.0-release/usr.sbin/traceroute6/
H A Dtraceroute6.c1332 u_char *cp = (u_char *)ip6, nh; local
1339 nh = ip6->ip6_nxt;
1342 while (lim - cp >= (nh == IPPROTO_NONE ? 0 : 8)) {
1343 switch (nh) {
1348 return(useproto == nh ? cp : NULL);
1350 return(useproto == nh ? cp : NULL);
1352 return(useproto == nh ? none_hdr : NULL);
1355 nh = ((struct ip6_frag *)cp)->ip6f_nxt;
1359 nh = ((struct ip6_ext *)cp)->ip6e_nxt;
1363 nh
[all...]
/freebsd-10.0-release/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-10.0-release/sys/fs/nfsserver/
H A Dnfs_nfsdport.c115 struct nfsheur *nh; local
121 nh = &nfsheur[hi];
124 nh = &nfsheur[hi];
130 if (nfsheur[hi].nh_use < nh->nh_use)
131 nh = &nfsheur[hi];
135 if (nh->nh_vp != vp) {
136 nh->nh_vp = vp;
137 nh->nh_nextoff = uio->uio_offset;
138 nh->nh_use = NHUSE_INIT;
140 nh
629 struct nfsheur *nh; local
713 struct nfsheur *nh; local
[all...]
/freebsd-10.0-release/sys/nfsserver/
H A Dnfs_serv.c171 struct nfsheur *nh; local
177 nh = &nfsheur[hi];
180 nh = &nfsheur[hi];
186 if (nfsheur[hi].nh_use < nh->nh_use)
187 nh = &nfsheur[hi];
191 if (nh->nh_vp != vp) {
192 nh->nh_vp = vp;
193 nh->nh_nextoff = uio->uio_offset;
194 nh->nh_use = NHUSE_INIT;
196 nh
792 struct nfsheur *nh; local
982 struct nfsheur *nh; local
[all...]
/freebsd-10.0-release/usr.sbin/route6d/
H A Droute6d.c812 struct in6_addr *nh; /* next hop */ local
829 nh = NULL;
840 nh = NULL;
879 nrt = 0; np = ripbuf->rip6_nets; nh = NULL;
901 if (nh == NULL || !IN6_ARE_ADDR_EQUAL(nh, &rrt->rrt_gw)) {
904 nh = NULL;
913 nh = &rrt->rrt_gw;
916 } else if (nh && (rrt->rrt_index != ifcp->ifc_index ||
917 !IN6_ARE_ADDR_EQUAL(nh,
1106 struct in6_addr nh; /* next hop */ local
[all...]
/freebsd-10.0-release/contrib/one-true-awk/
H A Dtran.c249 int i, nh, nsz; local
259 nh = hash(cp->nval, nsz);
260 cp->cnext = np[nh];
261 np[nh] = cp;

Completed in 191 milliseconds

123