/titanic_41/usr/src/lib/libsocket/inet/ |
H A D | netmasks.c | 140 net2.s_addr = htonl(i); in getnetmaskbynet() 142 net1.s_addr = htonl(i << IN_CLASSC_NSHIFT); in getnetmaskbynet() 144 net1.s_addr = htonl(i << IN_CLASSB_NSHIFT); in getnetmaskbynet() 146 net1.s_addr = htonl(i << IN_CLASSA_NSHIFT); in getnetmaskbynet() 149 net1.s_addr = htonl(i & IN_CLASSA_NET); in getnetmaskbynet() 150 net2.s_addr = htonl(i >> IN_CLASSA_NSHIFT); in getnetmaskbynet() 152 net1.s_addr = htonl(i & IN_CLASSB_NET); in getnetmaskbynet() 153 net2.s_addr = htonl(i >> IN_CLASSB_NSHIFT); in getnetmaskbynet() 155 net1.s_addr = htonl(i & IN_CLASSC_NET); in getnetmaskbynet() 156 net2.s_addr = htonl(i >> IN_CLASSC_NSHIFT); in getnetmaskbynet() [all …]
|
/titanic_41/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 …]
|
/titanic_41/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
|
/titanic_41/usr/src/cmd/ipf/lib/common/ |
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));
|
/titanic_41/usr/src/cmd/lms/ |
H A D | LMEConnection.cpp | 153 disconnectMessage->ReasonCode = htonl(reasonCode); in Disconnect() 180 *((UINT32 *)pCurrent) = htonl(serviceName.size()); in ServiceAccept() 221 protVersion.MajorVersion = htonl(versionMessage.MajorVersion); in ProtocolVersion() 222 protVersion.MinorVersion = htonl(versionMessage.MinorVersion); in ProtocolVersion() 223 protVersion.TriggerReason = htonl(versionMessage.TriggerReason); in ProtocolVersion() 241 message.PortBound = htonl(port); in TcpForwardReplySuccess() 315 *((UINT32 *)pCurrent) = htonl(APF_STR_SIZE_OF(APF_OPEN_CHANNEL_REQUEST_FORWARDED)); in ChannelOpenForwardedRequest() 321 *((UINT32 *)pCurrent) = htonl(senderChannel); in ChannelOpenForwardedRequest() 324 *((UINT32 *)pCurrent) = htonl(RX_WINDOW_SIZE); in ChannelOpenForwardedRequest() 330 *((UINT32 *)pCurrent) = htonl(APF_STR_SIZE_OF("127.0.0.1")); in ChannelOpenForwardedRequest() [all …]
|
/titanic_41/usr/src/lib/libdns_sd/common/ |
H A D | dnssd_ipc.c | 130 hdr->version = htonl(hdr->version); in ConvertHeaderBytes() 131 hdr->datalen = htonl(hdr->datalen); in ConvertHeaderBytes() 132 hdr->flags = htonl(hdr->flags); in ConvertHeaderBytes() 133 hdr->op = htonl(hdr->op ); in ConvertHeaderBytes() 134 hdr->reg_index = htonl(hdr->reg_index); in ConvertHeaderBytes()
|
/titanic_41/usr/src/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 | tst.inet_ntop.d | 71 *ip4a = htonl(0xc0a80117); 72 *ip4b = htonl(0x7f000001); 73 *ip4c = htonl(0xffffffff); 74 *ip4d = htonl(0x00000000);
|
/titanic_41/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 …]
|
/titanic_41/usr/src/uts/common/io/cxgbe/common/ |
H A D | t4_hw.c | 289 *data++ = htonl(t4_read_reg(adap, MC_DATA(i))); in t4_mc_read() 328 *data++ = htonl(t4_read_reg(adap, EDC_DATA(i))); in t4_edc_read() 825 *data = htonl(*data); in t4_read_flash() 1123 ((struct fw_hdr *)first_page)->fw_ver = htonl(0xffffffff); in t4_load_fw() 1554 c.op_to_portid = htonl(V_FW_CMD_OP(FW_PORT_CMD) | F_FW_CMD_REQUEST | in t4_link_start() 1556 c.action_to_len16 = htonl(V_FW_PORT_CMD_ACTION(FW_PORT_ACTION_L1_CFG) | in t4_link_start() 1560 c.u.l1cfg.rcap = htonl((lc->supported & ADVERT_MASK) | fc); in t4_link_start() 1563 c.u.l1cfg.rcap = htonl(lc->requested_speed | fc | mdi); in t4_link_start() 1566 c.u.l1cfg.rcap = htonl(lc->advertising | fc | mdi); in t4_link_start() 1585 c.op_to_portid = htonl(V_FW_CMD_OP(FW_PORT_CMD) | F_FW_CMD_REQUEST | in t4_restart_aneg() [all …]
|
/titanic_41/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)); \
|
/titanic_41/usr/src/uts/i86pc/dboot/ |
H A D | dboot_asm.s | 88 ENTRY(htonl) 92 SET_SIZE(htonl) 135 ENTRY(htonl) 139 SET_SIZE(htonl)
|
/titanic_41/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 …]
|
/titanic_41/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | select.c | 166 d6in.d6in_iaid = htonl(dsmp->dsm_lif->lif_iaid); in dhcp_selecting() 167 d6in.d6in_t1 = htonl(0); in dhcp_selecting() 168 d6in.d6in_t2 = htonl(0); in dhcp_selecting() 196 (void) add_pkt_opt32(dpkt, CD_LEASE_TIME, htonl(DHCP_PERM)); in dhcp_selecting() 227 (void) send_pkt(dsmp, dpkt, htonl(INADDR_BROADCAST), in dhcp_selecting()
|
/titanic_41/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()
|
/titanic_41/usr/src/lib/libc/i386/gen/ |
H A D | byteorder.s | 38 / unsigned long htonl( hl ) 43 ENTRY(htonl) 47 SET_SIZE(htonl)
|
H A D | byteorder64.c | 41 return (htonl(in >> 32) | ((uint64_t)htonl(in) << 32)); in htonll()
|
/titanic_41/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()
|
/titanic_41/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 …]
|
/titanic_41/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()
|
/titanic_41/usr/src/lib/nsswitch/nis/common/ |
H A D | getnetent.c | 118 if ((IN_CLASSA_HOST & htonl(addr)) == 0) { in nettoa() 124 } else if ((IN_CLASSB_HOST & htonl(addr)) == 0) { in nettoa() 133 } else if ((IN_CLASSC_HOST & htonl(addr)) == 0) { in nettoa()
|
/titanic_41/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)))
|
/titanic_41/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
|
/titanic_41/usr/src/lib/libilb/common/ |
H A D | libilb_impl.h | 71 (addr)->_S6_un._S6_u32[0] = htonl((msb) >> 32); \ 72 (addr)->_S6_un._S6_u32[1] = htonl((msb) & 0xffffffff) 75 (addr)->_S6_un._S6_u32[2] = htonl((lsb) >> 32); \ 76 (addr)->_S6_un._S6_u32[3] = htonl((lsb) & 0xffffffff)
|
/titanic_41/usr/src/lib/print/libipp-core/common/ |
H A D | write.c | 222 v = (int32_t)htonl(v); in ipp_write_attribute() 230 int32_t min = (int32_t)htonl((int)(value->range).lower), in ipp_write_attribute() 231 max = (int32_t)htonl((int)(value->range).upper); in ipp_write_attribute() 248 x = (int32_t)htonl(x); in ipp_write_attribute() 249 y = (int32_t)htonl(y); in ipp_write_attribute() 395 i = (uint32_t)htonl(tmp); in ipp_write_message_header()
|