/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | netmasks.c | 138 net2.s_addr = htonl(i); in getnetmaskbynet() 140 net1.s_addr = htonl(i << IN_CLASSC_NSHIFT); in getnetmaskbynet() 142 net1.s_addr = htonl(i << IN_CLASSB_NSHIFT); in getnetmaskbynet() 144 net1.s_addr = htonl(i << IN_CLASSA_NSHIFT); in getnetmaskbynet() 147 net1.s_addr = htonl(i & IN_CLASSA_NET); in getnetmaskbynet() 148 net2.s_addr = htonl(i >> IN_CLASSA_NSHIFT); in getnetmaskbynet() 150 net1.s_addr = htonl(i & IN_CLASSB_NET); in getnetmaskbynet() 151 net2.s_addr = htonl(i >> IN_CLASSB_NSHIFT); in getnetmaskbynet() 153 net1.s_addr = htonl(i & IN_CLASSC_NET); in getnetmaskbynet() 154 net2.s_addr = htonl(i >> IN_CLASSC_NSHIFT); in getnetmaskbynet() [all …]
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | dump.c | 1291 tlv->attr_id = htonl(ISNS_ISCSI_NAME_ATTR_ID); in new_dd_dds() 1292 tlv->attr_len = htonl(32); in new_dd_dds() 1301 tlv->attr_id = htonl(ISNS_DELIMITER_ATTR_ID); in new_dd_dds() 1302 tlv->attr_len = htonl(0); in new_dd_dds() 1316 tlv->attr_id = htonl(ISNS_DD_NAME_ATTR_ID); in new_dd_dds() 1317 tlv->attr_len = htonl(len); in new_dd_dds() 1331 tlv->attr_id = htonl(ISNS_DD_SET_NAME_ATTR_ID); in new_dd_dds() 1332 tlv->attr_len = htonl(len); in new_dd_dds() 1349 tlv->attr_id = htonl(ISNS_DD_NAME_ATTR_ID); in new_dd_dds() 1350 tlv->attr_len = htonl(len); in new_dd_dds() [all …]
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | bootparam.c | 144 args->prog = htonl(BOOTPARAM_PROG); in bp_whoami() 145 args->vers = htonl(BOOTPARAM_VERS); in bp_whoami() 146 args->proc = htonl(BOOTPARAM_WHOAMI); in bp_whoami() 147 args->arglen = htonl(sizeof(struct xdr_inaddr)); in bp_whoami() 333 *lenp = htonl(len); in xdr_string_encode() 383 xi->atype = htonl(1); in xdr_inaddr_encode() 392 *ip++ = htonl((unsigned int)*cp++); in xdr_inaddr_encode() 393 *ip++ = htonl((unsigned int)*cp++); in xdr_inaddr_encode() 394 *ip++ = htonl((unsigned int)*cp++); in xdr_inaddr_encode() 395 *ip++ = htonl((unsigned int)*cp++); in xdr_inaddr_encode() [all …]
|
H A D | rpc.c | 144 auth->authtype = htonl(RPCAUTH_NULL); in rpc_call() 152 auth->authtype = htonl(RPCAUTH_UNIX); in rpc_call() 153 auth->authlen = htonl(sizeof(struct auth_unix)); in rpc_call() 159 call->rp_xid = htonl(rpc_xid); in rpc_call() 160 call->rp_direction = htonl(RPC_CALL); in rpc_call() 161 call->rp_rpcvers = htonl(RPC_VER2); in rpc_call() 162 call->rp_prog = htonl(prog); in rpc_call() 163 call->rp_vers = htonl(vers); in rpc_call() 164 call->rp_proc = htonl(proc); in rpc_call() 408 args->prog = htonl(prog); in rpc_getport() [all …]
|
H A D | nfs.c | 216 args->len = htonl(len); in nfs_getrootfh() 278 args->fhsize = htonl(d->fhsize); in nfs_lookupfh() 284 args->fhplusname[pos++] = htonl(len); in nfs_lookupfh() 349 args->fhsize = htonl(d->fhsize); in nfs_readlink() 417 args->fhsize = htonl(d->fhsize); in nfs_readdata() 421 args->fhoffcnt[pos++] = htonl((uint32_t)off); in nfs_readdata() 424 args->fhoffcnt[pos] = htonl((uint32_t)len); in nfs_readdata() 505 nfs_root_node.fa.fa_type = htonl(NFDIR); in nfs_open() 506 nfs_root_node.fa.fa_mode = htonl(0755); in nfs_open() 507 nfs_root_node.fa.fa_nlink = htonl(2); in nfs_open() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_xdr.c | 336 na->na_type = htonl(na->na_type); in xdr_fastfattr() 337 na->na_mode = htonl(na->na_mode); in xdr_fastfattr() 338 na->na_nlink = htonl(na->na_nlink); in xdr_fastfattr() 339 na->na_uid = htonl(na->na_uid); in xdr_fastfattr() 340 na->na_gid = htonl(na->na_gid); in xdr_fastfattr() 341 na->na_size = htonl(na->na_size); in xdr_fastfattr() 342 na->na_blocksize = htonl(na->na_blocksize); in xdr_fastfattr() 343 na->na_rdev = htonl(na->na_rdev); in xdr_fastfattr() 344 na->na_blocks = htonl(na->na_blocks); in xdr_fastfattr() 345 na->na_fsid = htonl(na->na_fsid); in xdr_fastfattr() [all …]
|
/illumos-gate/usr/src/stand/lib/xdr/ |
H A D | byteorder.c | 46 return ((uint64_t)htonl((in >> 32) & 0xffffffff) | in htonll() 47 ((uint64_t)htonl(in & 0xffffffff) << 32)); in htonll() 58 htonl(uint32_t in) in htonl() function 72 return (htonl(in)); in ntohl() 108 htonl(uint32_t in) in htonl() function
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | fill6bits.c | 32 msk[3] = htonl(msk[3] << (128 - bits)); 35 msk[2] = htonl(msk[2] << (96 - bits)); 39 msk[1] = htonl(msk[1] << (64 - bits)); 44 msk[0] = htonl(msk[0] << (32 - bits));
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.inet_ntoa.d | 45 *ip4a = htonl(0xc0a80117); 46 *ip4b = htonl(0x7f000001); 47 *ip4c = htonl(0xffffffff); 48 *ip4d = htonl(0x00000000);
|
H A D | tst.inet_ntop.d | 69 *ip4a = htonl(0xc0a80117); 70 *ip4b = htonl(0x7f000001); 71 *ip4c = htonl(0xffffffff); 72 *ip4d = htonl(0x00000000);
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | offload.h | 32 (w)->wr.wr_hi = htonl(V_FW_WR_OP(FW_ULPTX_WR) | \ 34 (w)->wr.wr_mid = htonl(V_FW_WR_LEN16(DIV_ROUND_UP(wrlen, 16)) | \ 40 (w)->wr.wr_hi = htonl(V_FW_WR_OP(FW_TP_WR) | \ 42 (w)->wr.wr_mid = htonl(V_FW_WR_LEN16(DIV_ROUND_UP(sizeof (*w), 16)) | \ 49 OPCODE_TID(w) = htonl(MK_OPCODE_TID(cpl, tid)); \
|
/illumos-gate/usr/src/lib/libc/i386/gen/ |
H A D | byteorder64.c | 42 return (htonl(in >> 32) | ((uint64_t)htonl(in) << 32)); in htonll() 54 return (htonl(in >> 32) | ((uint64_t)htonl(in) << 32)); in htobe64()
|
/illumos-gate/usr/src/common/crypto/aes/ |
H A D | aes_impl.c | 1618 keyarr.ka32[i] = htonl(*(uint32_t *)(void *)&cipherKey[j]); in aes_init_keysched() 1655 buffer[0] = htonl(*(uint32_t *)(void *)&pt[0]); in aes_encrypt_block() 1656 buffer[1] = htonl(*(uint32_t *)(void *)&pt[4]); in aes_encrypt_block() 1657 buffer[2] = htonl(*(uint32_t *)(void *)&pt[8]); in aes_encrypt_block() 1658 buffer[3] = htonl(*(uint32_t *)(void *)&pt[12]); in aes_encrypt_block() 1670 *(uint32_t *)(void *)&ct[0] = htonl(buffer[0]); in aes_encrypt_block() 1671 *(uint32_t *)(void *)&ct[4] = htonl(buffer[1]); in aes_encrypt_block() 1672 *(uint32_t *)(void *)&ct[8] = htonl(buffer[2]); in aes_encrypt_block() 1673 *(uint32_t *)(void *)&ct[12] = htonl(buffer[3]); in aes_encrypt_block() 1708 buffer[0] = htonl(*(uint32_t *)(void *)&ct[0]); in aes_decrypt_block() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | select.c | 164 d6in.d6in_iaid = htonl(dsmp->dsm_lif->lif_iaid); in dhcp_selecting() 165 d6in.d6in_t1 = htonl(0); in dhcp_selecting() 166 d6in.d6in_t2 = htonl(0); in dhcp_selecting() 194 (void) add_pkt_opt32(dpkt, CD_LEASE_TIME, htonl(DHCP_PERM)); in dhcp_selecting() 207 (void) send_pkt(dsmp, dpkt, htonl(INADDR_BROADCAST), in dhcp_selecting()
|
/illumos-gate/usr/src/uts/i86pc/dboot/ |
H A D | dboot_asm.S | 67 ENTRY(htonl) 71 SET_SIZE(htonl) 114 ENTRY(htonl) 118 SET_SIZE(htonl)
|
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/ |
H A D | dnssd_ipc.c | 174 hdr->version = htonl(hdr->version); in ConvertHeaderBytes() 175 hdr->datalen = htonl(hdr->datalen); in ConvertHeaderBytes() 176 hdr->ipc_flags = htonl(hdr->ipc_flags); in ConvertHeaderBytes() 177 hdr->op = htonl(hdr->op ); in ConvertHeaderBytes() 178 hdr->reg_index = htonl(hdr->reg_index); in ConvertHeaderBytes()
|
/illumos-gate/usr/src/common/crypto/blowfish/ |
H A D | blowfish_impl.c | 397 left = htonl(*(uint32_t *)(void *)&block[0]); in blowfish_encrypt_block() 398 right = htonl(*(uint32_t *)(void *)&block[4]); in blowfish_encrypt_block() 445 *(uint32_t *)(void *)&out_block[0] = htonl(left); in blowfish_encrypt_block() 446 *(uint32_t *)(void *)&out_block[4] = htonl(right); in blowfish_encrypt_block() 492 left = htonl(*(uint32_t *)(void *)&block[0]); in blowfish_decrypt_block() 493 right = htonl(*(uint32_t *)(void *)&block[4]); in blowfish_decrypt_block() 540 *(uint32_t *)(void *)&out_block[0] = htonl(left); in blowfish_decrypt_block() 541 *(uint32_t *)(void *)&out_block[4] = htonl(right); in blowfish_decrypt_block()
|
/illumos-gate/usr/src/uts/intel/asm/ |
H A D | byteorder.h | 71 htonl(uint32_t value) in htonl() function 104 return (htonl(value >> 32) | ((uint64_t)htonl(value) << 32)); in htonll()
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | dca_3des.c | 82 des_ctx->dr_ctx.iv[0] = htonl(p[0]); in dca_3des() 83 des_ctx->dr_ctx.iv[1] = htonl(p[1]); in dca_3des() 182 des_ctx->dr_ctx.iv[0] = htonl(p[0]); in dca_3desupdate() 183 des_ctx->dr_ctx.iv[1] = htonl(p[1]); in dca_3desupdate() 443 ctx->dr_ctx.iv[0] = htonl(ivp[0]); in dca_3desstart() 444 ctx->dr_ctx.iv[1] = htonl(ivp[1]); in dca_3desstart() 594 ctx->dr_ctx.iv[0] = htonl(iv[0]); in dca_3desdone() 595 ctx->dr_ctx.iv[1] = htonl(iv[1]); in dca_3desdone() 699 des_ctx->dr_ctx.iv[0] = htonl(param[0]); in dca_3desctxinit() 700 des_ctx->dr_ctx.iv[1] = htonl(param[1]); in dca_3desctxinit() [all …]
|
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | eftwrite.c | 153 hdr.magic = htonl(hdr.magic); in eftwrite() 158 hdr.identlen = htonl(hdr.identlen); in eftwrite() 159 hdr.dictlen = htonl(hdr.dictlen); in eftwrite() 160 hdr.csum = htonl(hdr.csum); in eftwrite()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | byteorder.h | 63 #define htonl(x) (x) macro 83 extern uint32_t htonl(uint32_t); 88 extern in_addr_t htonl(in_addr_t); 116 #define BSWAP_32(x) htonl(x) 181 #define BE_IN32(xa) htonl(*((uint32_t *)(void *)(xa)))
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rwhod.c | 411 htonl(utmpx[i].ut_xtime); in onalrm() 432 we->we_idle = htonl(now - stb.st_atime); in onalrm() 441 mywd.wd_loadav[i] = htonl((ulong_t)(avenrun[i] * 100)); in onalrm() 443 mywd.wd_sendtime = htonl(time(0)); in onalrm() 488 mywd.wd_boottime = htonl(mywd.wd_boottime); in getkmem() 512 mreq.imr_multiaddr.s_addr = htonl(INADDR_WHOD_GROUP); in configure() 513 mreq.imr_interface.s_addr = htonl(INADDR_ANY); in configure() 527 multicast_addr.sin_addr.s_addr = htonl(INADDR_WHOD_GROUP); in configure() 624 mreq.imr_multiaddr.s_addr = htonl(INADDR_WHOD_GROUP); in configure() 638 htonl(INADDR_WHOD_GROUP); in configure()
|
/illumos-gate/usr/src/lib/nsswitch/nis/common/ |
H A D | getnetent.c | 116 if ((IN_CLASSA_HOST & htonl(addr)) == 0) { in nettoa() 122 } else if ((IN_CLASSB_HOST & htonl(addr)) == 0) { in nettoa() 131 } else if ((IN_CLASSC_HOST & htonl(addr)) == 0) { in nettoa()
|
/illumos-gate/usr/src/lib/print/libipp-core/common/ |
H A D | write.c | 220 v = (int32_t)htonl(v); in ipp_write_attribute() 228 int32_t min = (int32_t)htonl((int)(value->range).lower), in ipp_write_attribute() 229 max = (int32_t)htonl((int)(value->range).upper); in ipp_write_attribute() 246 x = (int32_t)htonl(x); in ipp_write_attribute() 247 y = (int32_t)htonl(y); in ipp_write_attribute() 393 i = (uint32_t)htonl(tmp); in ipp_write_message_header()
|
/illumos-gate/usr/src/man/man3xnet/ |
H A D | Makefile | 35 htonl.3xnet \ 100 htons.3xnet := LINKSRC = htonl.3xnet 114 ntohl.3xnet := LINKSRC = htonl.3xnet 115 ntohs.3xnet := LINKSRC = htonl.3xnet
|