Searched refs:htonl (Results 1 - 25 of 489) sorted by relevance

1234567891011>>

/freebsd-9.3-release/contrib/ipfilter/lib/
H A Dfill6bits.c34 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 Dgethost.c22 *hostp = htonl(0xfedcba98);
40 *hostp = (u_32_t)htonl(n->n_net & 0xffffffff);
H A Dntomask.c33 *ap = htonl(mask);
/freebsd-9.3-release/contrib/ntp/tests/libntp/
H A Dnumtohost.c30 TEST_ASSERT_EQUAL_STRING("127.0.1.1", numtohost(htonl(input)));
H A Dnumtoa.c24 const u_int32 input = htonl(3221225472UL + 512UL + 1UL); // 192.0.2.1
33 const u_int32 input = htonl(hostOrder);
H A Drefnumtoa.c38 address.sa4.sin_addr.s_addr = htonl(addr);
63 address.sa4.sin_addr.s_addr = htonl(addr);
/freebsd-9.3-release/sys/nfs/
H A Dxdr_subs.h42 * 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-9.3-release/sys/fs/nfs/
H A Dxdr_subs.h40 * 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-9.3-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/
H A Dtst.inet_ntoa.d47 *ip4a = htonl(0xc0a80117);
48 *ip4b = htonl(0x7f000001);
49 *ip4c = htonl(0xffffffff);
50 *ip4d = htonl(0x00000000);
H A Derr.inet_ntopbadarg.d37 *ip4a = htonl(0xc0a80117);
H A Dtst.hton.d69 /after[1] != htonl(before[1])/
71 printf("%x rather than %x", htonl(before[1]), after[1]);
/freebsd-9.3-release/lib/libc/mips/net/
H A Dhtonl.S43 LEAF(htonl) # a0 = 0x11223344, return 0x44332211
58 END(htonl)
/freebsd-9.3-release/lib/libc/net/
H A Dntoh.c33 htonl(uint32_t hl) function
/freebsd-9.3-release/contrib/ofed/libmthca/src/
H A Dsrq.c73 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 Dqp.c141 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-9.3-release/usr.bin/talk/
H A Dinvite.c85 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-9.3-release/usr.sbin/timed/timed/
H A Dbyteorder.c55 ptr->tsp_time.tv_sec = htonl((u_long)ptr->tsp_time.tv_sec);
56 ptr->tsp_time.tv_usec = htonl((u_long)ptr->tsp_time.tv_usec);
/freebsd-9.3-release/sys/netinet/
H A Dip_ecn.c170 *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-9.3-release/contrib/bind9/lib/isc/include/isc/
H A Dipv6.h114 ((a)->s6_addr32[3] == htonl(1)))
124 ((a)->s6_addr32[3] != htonl(1)))
132 ((a)->s6_addr32[2] == htonl(0x0000ffff)))
/freebsd-9.3-release/contrib/bind9/lib/lwres/include/lwres/
H A Dipv6.h104 ((a)->s6_addr32[3] == htonl(1)))
114 ((a)->s6_addr32[3] != htonl(1)))
122 ((a)->s6_addr32[2] == htonl(0x0000ffff)))
/freebsd-9.3-release/contrib/ntp/lib/isc/include/isc/
H A Dipv6.h114 ((a)->s6_addr32[3] == htonl(1)))
124 ((a)->s6_addr32[3] != htonl(1)))
132 ((a)->s6_addr32[2] == htonl(0x0000ffff)))
/freebsd-9.3-release/contrib/ntp/lib/isc/win32/include/isc/
H A Dipv6.h80 *((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-9.3-release/sys/dev/cxgbe/
H A Doffload.h35 (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-9.3-release/lib/libstand/
H A Dbootparam.c149 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...]
/freebsd-9.3-release/contrib/ntp/ntpd/
H A Dntp_request.c1040 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...]

Completed in 115 milliseconds

1234567891011>>