/freebsd-10.2-release/lib/libc/mips/net/ |
H A D | Makefile.inc | 4 SRCS+= htonl.S ntohl.S htons.S ntohs.S
|
H A D | htonl.S | 34 __FBSDID("$FreeBSD: releng/10.2/lib/libc/mips/net/htonl.S 251091 2013-05-29 01:54:10Z emaste $"); 36 LEAF(htonl) # a0 = 0x11223344, return 0x44332211 51 END(htonl)
|
/freebsd-10.2-release/contrib/ntp/tests/libntp/ |
H A D | numtohost.c | 30 TEST_ASSERT_EQUAL_STRING("127.0.1.1", numtohost(htonl(input)));
|
H A D | numtoa.c | 24 const u_int32 input = htonl(3221225472UL + 512UL + 1UL); // 192.0.2.1 33 const u_int32 input = htonl(hostOrder);
|
H A D | refnumtoa.c | 38 address.sa4.sin_addr.s_addr = htonl(addr); 63 address.sa4.sin_addr.s_addr = htonl(addr);
|
/freebsd-10.2-release/contrib/ipfilter/lib/ |
H A D | fill6bits.c | 34 msk[3] = htonl(msk[3] << (128 - bits)); 37 msk[2] = htonl(msk[2] << (96 - bits)); 41 msk[1] = htonl(msk[1] << (64 - bits)); 46 msk[0] = htonl(msk[0] << (32 - bits));
|
H A D | gethost.c | 25 hostp->in4.s_addr = htonl(0xfedcba98); 29 hostp->i6[0] = htonl(0xfe80aa55); 30 hostp->i6[1] = htonl(0x12345678); 31 hostp->i6[2] = htonl(0x5a5aa5a5); 32 hostp->i6[3] = htonl(0xfedcba98); 54 hostp->in4.s_addr = htonl(n->n_net & 0xffffffff);
|
H A D | ntomask.c | 33 *ap = htonl(mask);
|
/freebsd-10.2-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 52 #define txdr_unsigned(v) (htonl((int32_t)(v))) 64 ((struct nfsv2_time *)(t))->nfsv2_sec = htonl((f)->tv_sec); \ 66 ((struct nfsv2_time *)(t))->nfsv2_usec = htonl((f)->tv_nsec / 1000); \ 78 ((struct nfsv3_time *)(t))->nfsv3_sec = htonl((f)->tv_sec); \ 79 ((struct nfsv3_time *)(t))->nfsv3_nsec = htonl((f)->tv_nsec); \ 87 ((u_int32_t *)(t))[0] = htonl((u_int32_t)((f) >> 32)); \ 88 ((u_int32_t *)(t))[1] = htonl((u_int32_t)((f) & 0xffffffff)); \
|
/freebsd-10.2-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 50 #define txdr_unsigned(v) (htonl((int32_t)(v))) 61 ((struct nfsv2_time *)(t))->nfsv2_sec = htonl((f)->tv_sec); \ 63 ((struct nfsv2_time *)(t))->nfsv2_usec = htonl((f)->tv_nsec / 1000); \ 74 ((struct nfsv3_time *)(t))->nfsv3_sec = htonl((f)->tv_sec); \ 75 ((struct nfsv3_time *)(t))->nfsv3_nsec = htonl((f)->tv_nsec); \ 86 ((struct nfsv4_time *)(t))->nfsv4_sec = htonl((f)->tv_sec); \ 87 ((struct nfsv4_time *)(t))->nfsv4_nsec = htonl((f)->tv_nsec); \ 95 ((u_int32_t *)(t))[0] = htonl((u_int32_ [all...] |
/freebsd-10.2-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.inet_ntoa.d | 47 *ip4a = htonl(0xc0a80117); 48 *ip4b = htonl(0x7f000001); 49 *ip4c = htonl(0xffffffff); 50 *ip4d = htonl(0x00000000);
|
H A D | err.inet_ntopbadarg.d | 37 *ip4a = htonl(0xc0a80117);
|
H A D | tst.hton.d | 69 /after[1] != htonl(before[1])/ 71 printf("%x rather than %x", htonl(before[1]), after[1]);
|
/freebsd-10.2-release/lib/libc/net/ |
H A D | ntoh.c | 33 htonl(uint32_t hl) function
|
/freebsd-10.2-release/contrib/ofed/libmthca/src/ |
H A D | srq.c | 73 last_free->nda_op = htonl((ind << srq->wqe_shift) | 1); 127 htonl(wr->sg_list[i].length); 129 htonl(wr->sg_list[i].lkey); 137 ((struct mthca_data_seg *) wqe)->lkey = htonl(MTHCA_INVAL_LKEY); 142 htonl(MTHCA_NEXT_DBD); 150 doorbell[0] = htonl(first_ind << srq->wqe_shift); 151 doorbell[1] = htonl(srq->srqn << 8); 166 doorbell[0] = htonl(first_ind << srq->wqe_shift); 167 doorbell[1] = htonl((srq->srqn << 8) | nreq); 220 htonl(w [all...] |
H A D | qp.c | 141 htonl(MTHCA_NEXT_CQ_UPDATE) : 0) | 143 htonl(MTHCA_NEXT_SOLICIT) : 0) | 144 htonl(1); 160 htonl(wr->wr.atomic.rkey); 187 htonl(wr->wr.rdma.rkey); 207 htonl(wr->wr.rdma.rkey); 222 htonl(to_mah(wr->wr.ud.ah)->key); 226 htonl(wr->wr.ud.remote_qpn); 228 htonl(wr->wr.ud.remote_qkey); 266 seg->byte_count = htonl(MTHCA_INLINE_SE [all...] |
/freebsd-10.2-release/usr.bin/talk/ |
H A D | invite.c | 85 msg.id_num = htonl(-1); /* an impossible id_num */ 112 msg.id_num = htonl(local_id); 114 msg.id_num = htonl(remote_id); 132 msg.id_num = htonl(remote_id + 1); 184 msg.id_num = htonl(remote_id); 190 msg.id_num = htonl(local_id);
|
/freebsd-10.2-release/usr.sbin/timed/timed/ |
H A D | byteorder.c | 54 ptr->tsp_time.tv_sec = htonl((u_long)ptr->tsp_time.tv_sec); 55 ptr->tsp_time.tv_usec = htonl((u_long)ptr->tsp_time.tv_usec);
|
/freebsd-10.2-release/sys/netinet/ |
H A D | ip_ecn.c | 170 *outer &= ~htonl(0xff << 20); 171 *outer |= htonl((u_int32_t)outer8 << 20); 187 *inner &= ~htonl(0xff << 20); 188 *inner |= htonl((u_int32_t)inner8 << 20);
|
/freebsd-10.2-release/contrib/ntp/lib/isc/include/isc/ |
H A D | ipv6.h | 114 ((a)->s6_addr32[3] == htonl(1))) 124 ((a)->s6_addr32[3] != htonl(1))) 132 ((a)->s6_addr32[2] == htonl(0x0000ffff)))
|
/freebsd-10.2-release/contrib/ntp/lib/isc/win32/include/isc/ |
H A D | ipv6.h | 80 *((u_long *)((a)->s6_addr) + 3) == htonl(1) \ 92 *((u_long *)((a)->s6_addr) + 3) != htonl(1) \ 101 *((u_long *)((a)->s6_addr) + 2) == htonl(0x0000ffff))
|
/freebsd-10.2-release/sys/dev/cxgbe/ |
H A D | offload.h | 35 (w)->wr_hi = htonl(V_FW_WR_OP(FW_ULPTX_WR) | V_FW_WR_ATOMIC(atomic)); \ 36 (w)->wr_mid = htonl(V_FW_WR_LEN16(DIV_ROUND_UP(wrlen, 16)) | \ 45 (w)->wr.wr_hi = htonl(V_FW_WR_OP(FW_TP_WR) | \ 47 (w)->wr.wr_mid = htonl(V_FW_WR_LEN16(DIV_ROUND_UP(sizeof(*w), 16)) | \ 54 OPCODE_TID(w) = htonl(MK_OPCODE_TID(cpl, tid)); \
|
/freebsd-10.2-release/lib/libstand/ |
H A D | bootparam.c | 149 args->prog = htonl(BOOTPARAM_PROG); 150 args->vers = htonl(BOOTPARAM_VERS); 151 args->proc = htonl(BOOTPARAM_WHOAMI); 152 args->arglen = htonl(sizeof(struct xdr_inaddr)); 344 *lenp = htonl(len); 399 xi->atype = htonl(1); 404 * Note: the htonl() calls below DO NOT 408 *ip++ = htonl((unsigned int)*cp++); 409 *ip++ = htonl((unsigned int)*cp++); 410 *ip++ = htonl((unsigne [all...] |
H A D | rpc.c | 145 auth->authtype = htonl(RPCAUTH_NULL); 154 auth->authtype = htonl(RPCAUTH_UNIX); 155 auth->authlen = htonl(sizeof(struct auth_unix)); 160 auth->authtype = htonl(RPCAUTH_NULL); 168 call->rp_xid = htonl(rpc_xid); 169 call->rp_direction = htonl(RPC_CALL); 170 call->rp_rpcvers = htonl(RPC_VER2); 171 call->rp_prog = htonl(prog); 172 call->rp_vers = htonl(vers); 173 call->rp_proc = htonl(pro [all...] |
/freebsd-10.2-release/contrib/ntp/ntpd/ |
H A D | ntp_request.c | 1040 ip->timereceived = htonl((u_int32)(current_time - pp->timereceived)); 1041 ip->timetosend = htonl(pp->nextdate - current_time); 1042 ip->timereachable = htonl((u_int32)(current_time - pp->timereachable)); 1043 ip->sent = htonl((u_int32)(pp->sent)); 1044 ip->processed = htonl((u_int32)(pp->processed)); 1045 ip->badauth = htonl((u_int32)(pp->badauth)); 1046 ip->bogusorg = htonl((u_int32)(pp->bogusorg)); 1047 ip->oldpkt = htonl((u_int32)(pp->oldpkt)); 1048 ip->seldisp = htonl((u_int32)(pp->seldisptoolarge)); 1049 ip->selbroken = htonl((u_int3 [all...] |