/freebsd-10.0-release/sys/boot/ficl/ |
H A D | unix.c | 12 return ntohl(number);
|
/freebsd-10.0-release/contrib/ipfilter/lib/ |
H A D | printiphdr.c | 18 ntohs(ip->ip_off), ntohs(ip->ip_sum), ntohl(ip->ip_src.s_addr), 19 ntohl(ip->ip_dst.s_addr));
|
H A D | nat_setgroupmap.c | 20 n->in_ippip = ~ntohl(n->in_osrcmsk); 22 n->in_ippip /= (~ntohl(n->in_nsrcmsk) + 1); 28 n->in_space = USABLE_PORTS * ~ntohl(n->in_nsrcmsk);
|
H A D | printip.c | 23 if (ntohl(ipa.s_addr) < 256) 24 PRINTF("%lu", (u_long)ntohl(ipa.s_addr));
|
H A D | count4bits.c | 25 ip = ipn = ntohl(ip);
|
/freebsd-10.0-release/sys/nfs/ |
H A D | xdr_subs.h | 42 * These use the MACHINE DEPENDENT routines ntohl, htonl 45 * To simplify the implementation, we use ntohl/htonl even on big-endian 51 #define fxdr_unsigned(t, v) ((t)ntohl((int32_t)(v))) 56 (t)->tv_sec = ntohl(((struct nfsv2_time *)(f))->nfsv2_sec); \ 58 (t)->tv_nsec = 1000 * ntohl(((struct nfsv2_time *)(f))->nfsv2_usec); \ 73 (t)->tv_sec = ntohl(((struct nfsv3_time *)(f))->nfsv3_sec); \ 74 (t)->tv_nsec = ntohl(((struct nfsv3_time *)(f))->nfsv3_nsec); \ 83 ((((u_quad_t)ntohl(((u_int32_t *)(f))[0])) << 32) | \ 84 (u_quad_t)(ntohl(((u_int32_t *)(f))[1])))
|
/freebsd-10.0-release/sys/fs/nfs/ |
H A D | xdr_subs.h | 40 * These use the MACHINE DEPENDENT routines ntohl, htonl 43 * To simplify the implementation, we use ntohl/htonl even on big-endian 49 #define fxdr_unsigned(t, v) ((t)ntohl((int32_t)(v))) 53 (t)->tv_sec = ntohl(((struct nfsv2_time *)(f))->nfsv2_sec); \ 55 (t)->tv_nsec = 1000 * ntohl(((struct nfsv2_time *)(f))->nfsv2_usec); \ 69 (t)->tv_sec = ntohl(((struct nfsv3_time *)(f))->nfsv3_sec); \ 70 (t)->tv_nsec = ntohl(((struct nfsv3_time *)(f))->nfsv3_nsec); \ 79 (t)->tv_sec = ntohl(((struct nfsv4_time *)(f))->nfsv4_sec); \ 80 (t)->tv_nsec = (ntohl(((struct nfsv4_time *)(f))->nfsv4_nsec) % \ 91 ((((u_quad_t)ntohl(((u_int32_ [all...] |
/freebsd-10.0-release/contrib/ntp/libntp/ |
H A D | numtohost.c | 27 if ((((ntohl(netnum) & LOOPBACKNETMASK) == LOOPBACKNET) 28 && (ntohl(netnum) != LOOPBACKHOST))
|
H A D | numtoa.c | 18 netnum = ntohl(num);
|
H A D | refnumtoa.c | 22 netnum = ntohl(((struct sockaddr_in*)num)->sin_addr.s_addr);
|
/freebsd-10.0-release/lib/libc/mips/net/ |
H A D | ntohl.S | 36 LEAF(ntohl) # a0 = 0x11223344, return 0x44332211 51 END(ntohl)
|
/freebsd-10.0-release/lib/libc/net/ |
H A D | ntoh.c | 47 ntohl(uint32_t nl) function
|
/freebsd-10.0-release/contrib/tcpdump/ |
H A D | extract.h | 42 * "ntohl()" than the code to fetch the bytes one at a time and 44 * where "ntohs()" and "ntohl()" might not be done inline.) 57 ((u_int32_t)ntohl(((const unaligned_u_int32_t *)(p))->val)) 59 ((u_int64_t)(((u_int64_t)ntohl(((const unaligned_u_int32_t *)(p) + 0)->val)) << 32 | \ 60 ((u_int64_t)ntohl(((const unaligned_u_int32_t *)(p) + 1)->val)) << 0)) 94 ((u_int32_t)ntohl(*(const u_int32_t *)(p))) 96 ((u_int64_t)(((u_int64_t)ntohl(*((const u_int32_t *)(p) + 0))) << 32 | \ 97 ((u_int64_t)ntohl(*((const u_int32_t *)(p) + 1))) << 0))
|
H A D | print-pfsync.c | 222 ntohl(iack->creatorid)); 231 ntohl(u->creatorid)); 244 ntohl(ur->creatorid)); 253 ntohl(d->creatorid)); 264 endtime = ntohl(b->endtime); 292 ntohl(t->spi), (uintmax_t )be64toh(t->rpl), 315 printf("[%u + %u](+%u)", ntohl(p->seqlo), 316 ntohl(p->seqhi) - ntohl(p->seqlo), ntohl( [all...] |
/freebsd-10.0-release/lib/libc/locale/ |
H A D | rune.c | 109 frl->variable_len = ntohl(frl->variable_len); 110 frl->runetype_ext_nranges = ntohl(frl->runetype_ext_nranges); 111 frl->maplower_ext_nranges = ntohl(frl->maplower_ext_nranges); 112 frl->mapupper_ext_nranges = ntohl(frl->mapupper_ext_nranges); 115 frl->runetype[x] = ntohl(frl->runetype[x]); 116 frl->maplower[x] = ntohl(frl->maplower[x]); 117 frl->mapupper[x] = ntohl(frl->mapupper[x]); 148 frr[x].min = ntohl(frr[x].min); 149 frr[x].max = ntohl(frr[x].max); 150 frr[x].map = ntohl(fr [all...] |
/freebsd-10.0-release/usr.sbin/timed/timed/ |
H A D | byteorder.c | 73 ptr->tsp_time.tv_sec = ntohl((u_long)ptr->tsp_time.tv_sec); 74 ptr->tsp_time.tv_usec = ntohl((u_long)ptr->tsp_time.tv_usec);
|
/freebsd-10.0-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.hton.d | 76 /after[1] != ntohl(before[1])/ 78 printf("%x rather than %x", ntohl(before[1]), after[1]);
|
/freebsd-10.0-release/lib/libc/inet/ |
H A D | inet_lnaof.c | 53 in_addr_t i = ntohl(in.s_addr);
|
H A D | inet_netof.c | 52 in_addr_t i = ntohl(in.s_addr);
|
/freebsd-10.0-release/contrib/ntp/ntpdc/ |
H A D | ntpdc_ops.c | 592 (void) fprintf(fp, "timer %lds, flags", (long)ntohl(pp->timer)); 803 (long)ntohl(pp->timereceived)); 805 (long)ntohl(pp->timetosend)); 807 (long)ntohl(pp->timereachable)); 809 (long)ntohl(pp->sent)); 811 (long)ntohl(pp->processed)); 813 (long)ntohl(pp->badauth)); 815 (long)ntohl(pp->bogusorg)); 817 (long)ntohl(pp->oldpkt)); 819 (long)ntohl(p [all...] |
/freebsd-10.0-release/sys/dev/dcons/ |
H A D | dcons.c | 57 ptr = ntohl(*ch->ptr); 86 ptr = ntohl(*ch->ptr); 171 dc->o.size = ntohl(buf->osize[port]); 172 dc->i.size = ntohl(buf->isize[port]); 173 dc->o.buf = (char *)buf + ntohl(buf->ooffset[port]); 174 dc->i.buf = (char *)buf + ntohl(buf->ioffset[port]); 175 dc->o.gen = ntohl(buf->optr[port]) >> DCONS_GEN_SHIFT; 176 dc->i.gen = ntohl(buf->iptr[port]) >> DCONS_GEN_SHIFT; 177 dc->o.pos = ntohl(buf->optr[port]) & DCONS_POS_MASK; 178 dc->i.pos = ntohl(bu [all...] |
/freebsd-10.0-release/sys/ofed/drivers/infiniband/ulp/sdp/ |
H A D | sdp_bcopy.c | 52 ntohs(h->bufs), ntohl(h->len), ntohl(h->mseq), 53 ntohl(h->mseq_ack)); 62 ntohl(hh->localrcvsz), 63 ntohl(hh->desremrcvsz)); 68 ntohl(hah->actrcvsz)); 74 ntohl(req_size->size)); 78 ntohl(h->len) - sizeof(struct sdp_bsdh)); 84 ntohl(rrch->len)); 91 ntohl( [all...] |
/freebsd-10.0-release/usr.sbin/ctld/ |
H A D | discovery.c | 67 if (ntohl(bhstr->bhstr_cmdsn) < conn->conn_cmdsn) { 69 "was %d, is %d", conn->conn_cmdsn, ntohl(bhstr->bhstr_cmdsn)); 71 if (ntohl(bhstr->bhstr_expstatsn) != conn->conn_statsn) { 73 "is %d, should be %d", ntohl(bhstr->bhstr_expstatsn), 76 conn->conn_cmdsn = ntohl(bhstr->bhstr_cmdsn); 122 if (ntohl(bhslr->bhslr_cmdsn) < conn->conn_cmdsn) { 125 ntohl(bhslr->bhslr_cmdsn)); 127 if (ntohl(bhslr->bhslr_expstatsn) != conn->conn_statsn) { 129 "is %d, should be %d", ntohl(bhslr->bhslr_expstatsn), 132 conn->conn_cmdsn = ntohl(bhsl [all...] |
/freebsd-10.0-release/sys/netinet/ |
H A D | ip_ecn.c | 168 inner8 = (ntohl(*inner) >> 20) & 0xff; 182 outer8 = (ntohl(*outer) >> 20) & 0xff; 183 inner8 = oinner8 = (ntohl(*inner) >> 20) & 0xff;
|
/freebsd-10.0-release/sbin/pfctl/ |
H A D | pf_print_state.c | 200 printf("[%u + %u](+%u)", ntohl(p->seqlo), 201 ntohl(p->seqhi) - ntohl(p->seqlo), ntohl(p->seqdiff)); 203 printf("[%u + %u]", ntohl(p->seqlo), 204 ntohl(p->seqhi) - ntohl(p->seqlo)); 301 u_int32_t creation = ntohl(s->creation); 302 u_int32_t expire = ntohl(s->expire); 324 if (ntohl( [all...] |