| /xnu-12377.1.9/bsd/netinet6/ |
| H A D | esp_chachapoly.c | 81 ntohl(sav->spi)); in esp_chachapoly_mature() 86 ntohl(sav->spi)); in esp_chachapoly_mature() 92 sav->alg_enc, ntohl(sav->spi)); in esp_chachapoly_mature() 98 ntohl(sav->spi)); in esp_chachapoly_mature() 105 sav->alg_enc, ntohl(sav->spi)); in esp_chachapoly_mature() 111 sav->key_enc->sadb_key_bits, ntohl(sav->spi)); in esp_chachapoly_mature() 116 ntohl(sav->spi), in esp_chachapoly_mature() 140 _KEYLEN(sav->key_enc), ntohl(sav->spi)); in esp_chachapoly_schedule() 150 sav->ivlen, ntohl(sav->spi)); in esp_chachapoly_schedule() 158 rc, ntohl(sav->spi)); in esp_chachapoly_schedule() [all …]
|
| H A D | esp_input.c | 201 ntohl(spi), seq, in esp_input_log() 203 ntohl(th.th_seq), proto_len); in esp_input_log() 285 (u_int32_t)ntohl(spi), (u_int32_t)ntohl(spi))); in esp4_input_extended() 296 (u_int32_t)ntohl(spi), (u_int32_t)ntohl(spi))); in esp4_input_extended() 304 (u_int32_t)ntohl(spi), (u_int32_t)ntohl(spi))); in esp4_input_extended() 318 seq = ntohl(((struct newesp *)esp)->esp_seq); in esp4_input_extended() 994 (u_int32_t)ntohl(spi), (u_int32_t)ntohl(spi), ntohl(((struct newesp *)esp)->esp_seq), in esp6_input_extended() 1008 (u_int32_t)ntohl(spi), (u_int32_t)ntohl(spi))); in esp6_input_extended() 1017 (u_int32_t)ntohl(spi), (u_int32_t)ntohl(spi))); in esp6_input_extended() 1031 seq = ntohl(((struct newesp *)esp)->esp_seq); in esp6_input_extended() [all …]
|
| H A D | esp_output.c | 299 dscp = (ntohl(ip6->ip6_flow) & IP6FLOW_DSCP_MASK) >> IP6FLOW_DSCP_SHIFT; in esp_output() 318 (u_int32_t)ntohl(ip->ip_src.s_addr), in esp_output() 319 (u_int32_t)ntohl(ip->ip_dst.s_addr), in esp_output() 320 (u_int32_t)ntohl(sav->spi))); in esp_output() 327 (u_int32_t)ntohl(sav->spi))); in esp_output() 341 "SPI=%u\n", (u_int32_t)ntohl(sav->spi))); in esp_output() 917 ntohl(spi), seq, in esp_output() 919 ntohl(th.th_seq), ntohl(th.th_ack), in esp_output() 1034 dscp = (ntohl(ip6->ip6_flow) & IP6FLOW_DSCP_MASK) >> IP6FLOW_DSCP_SHIFT; in esp_kpipe_output() 1042 ip_vers, ntohl(sav->spi)); in esp_kpipe_output() [all …]
|
| H A D | esp_rijndael.c | 615 "AES_BLOCKLEN, SPI 0x%08x", input_data_len, ntohl(sav->spi)); in esp_aes_cbc_encrypt_data() 624 esp_log_err("encrypt failed %d, SPI 0x%08x", rc, ntohl(sav->spi)); in esp_aes_cbc_encrypt_data() 652 ivlen, ntohl(sav->spi)); in esp_aes_cbc_decrypt_data() 667 esp_log_err("decrypt failed %d, SPI 0x%08x", rc, ntohl(sav->spi)); in esp_aes_cbc_decrypt_data() 929 __FUNCTION__, soff, m->m_pkthdr.len, ntohl(sav->spi))); in esp_gcm_encrypt_aes() 1069 __FUNCTION__, soff, m->m_pkthdr.len, ntohl(sav->spi))); in esp_gcm_decrypt_aes() 1101 ntohl(sav->spi)); in esp_aes_gcm_encrypt_data() 1109 rc, ntohl(sav->spi)); in esp_aes_gcm_encrypt_data() 1129 rc, ntohl(sav->spi)); in esp_aes_gcm_encrypt_data() 1141 rc, ntohl(sav->spi)); in esp_aes_gcm_encrypt_data() [all …]
|
| H A D | ah_input.c | 169 (u_int32_t)ntohl(spi))); in ah4_input() 180 (u_int32_t)ntohl(spi))); in ah4_input() 189 (u_int32_t)ntohl(spi))); in ah4_input() 263 if (ipsec_chkreplay(ntohl(((struct newah *)ah)->ah_seq), sav, 0)) { in ah4_input() 352 if (ipsec_updatereplay(ntohl(((struct newah *)ah)->ah_seq), sav, 0)) { in ah4_input() 632 (u_int32_t)ntohl(spi))); in ah6_input() 643 (u_int32_t)ntohl(spi))); in ah6_input() 652 (u_int32_t)ntohl(spi))); in ah6_input() 699 if (ipsec_chkreplay(ntohl(((struct newah *)ah)->ah_seq), sav, 0)) { in ah6_input() 770 if (ipsec_updatereplay(ntohl(((struct newah *)ah)->ah_seq), sav, 0)) { in ah6_input()
|
| H A D | ah_output.c | 204 (u_int32_t)ntohl(ip->ip_src.s_addr), in ah4_output() 205 (u_int32_t)ntohl(ip->ip_dst.s_addr), in ah4_output() 206 (u_int32_t)ntohl(sav->spi))); in ah4_output() 215 "SPI=%u\n", (u_int32_t)ntohl(sav->spi))); in ah4_output() 468 (u_int32_t)ntohl(sav->spi))); in ah6_output() 477 "SPI=%u\n", (u_int32_t)ntohl(sav->spi))); in ah6_output()
|
| H A D | esp_core.c | 1268 "ESP_CBC_DES_BLOCKLEN, SPI 0x%08x", input_data_len, ntohl(sav->spi)); in esp_cbc_des_encrypt_data() 1284 esp_log_err("encrypt failed %d, SPI 0x%08x", rc, ntohl(sav->spi)); in esp_cbc_des_encrypt_data() 1322 "ESP_CBC_DES_BLOCKLEN, SPI 0x%08x", input_data_len, ntohl(sav->spi)); in esp_cbc_des_decrypt_data() 1333 esp_log_err("decrypt failed %d, SPI 0x%08x", rc, ntohl(sav->spi)); in esp_cbc_des_decrypt_data() 1375 "ESP_CBC_3DES_BLOCKLEN, SPI 0x%08x", input_data_len, ntohl(sav->spi)); in esp_cbc_3des_encrypt_data() 1391 esp_log_err("encrypt failed %d, SPI 0x%08x", rc, ntohl(sav->spi)); in esp_cbc_3des_encrypt_data() 1429 "ESP_CBC_3DES_BLOCKLEN, SPI 0x%08x", input_data_len, ntohl(sav->spi)); in esp_cbc_3des_decrypt_data() 1440 esp_log_err("decrypt failed %d, SPI 0x%08x", rc, ntohl(sav->spi)); in esp_cbc_3des_decrypt_data() 1542 esp_log_info("ah schedule failed %d, SPI 0x%08x\n", error, ntohl(sav->spi)); in esp_auth() 1597 "SPI 0x%08x\n", input_data_len, ntohl(sav->spi)); in esp_auth_data() [all …]
|
| H A D | in6.h | 321 (*(const __uint32_t *)(const void *)(&(a)->s6_addr[12]) == ntohl(1))) 331 (*(const __uint32_t *)(const void *)(&(a)->s6_addr[12]) != ntohl(1))) 340 ntohl(0x0000ffff)))
|
| /xnu-12377.1.9/bsd/kern/ |
| H A D | ubc_subr.c | 260 uint32_t nCodeSlots = ntohl(cd->nCodeSlots); in hashes() 264 if ((ntohl(cd->version) >= CS_SUPPORTSSCATTER) && (ntohl(cd->scatterOffset))) { in hashes() 267 ((const char*)cd + ntohl(cd->scatterOffset)); in hashes() 271 if ((const char*)scatter > (const char*)cd + ntohl(cd->length)) { in hashes() 278 scount = ntohl(scatter->count); in hashes() 279 uint32_t new_base = ntohl(scatter->base); in hashes() 305 base = (const unsigned char *)cd + ntohl(cd->hashOffset) + in hashes() 326 base = (const unsigned char *)cd + ntohl(cd->hashOffset); in hashes() 366 if (ntohl(cd->magic) != CSMAGIC_CODEDIRECTORY) { in cs_validate_codedirectory() 382 if (length < ntohl(cd->hashOffset)) { in cs_validate_codedirectory() [all …]
|
| H A D | kern_authorization.c | 1098 uint32_t invert_magic = ntohl(KAUTH_FILESEC_MAGIC); in kauth_filesec_acl_setendian() 1124 compare_acl_entrycount = ntohl(acl->acl_entrycount); in kauth_filesec_acl_setendian() 1136 fsec->fsec_magic = ntohl(fsec->fsec_magic); in kauth_filesec_acl_setendian() 1137 acl->acl_entrycount = ntohl(acl->acl_entrycount); in kauth_filesec_acl_setendian() 1139 acl->acl_flags = ntohl(acl->acl_flags); in kauth_filesec_acl_setendian() 1143 acl->acl_ace[i].ace_flags = ntohl(acl->acl_ace[i].ace_flags); in kauth_filesec_acl_setendian() 1144 acl->acl_ace[i].ace_rights = ntohl(acl->acl_ace[i].ace_rights); in kauth_filesec_acl_setendian()
|
| /xnu-12377.1.9/osfmk/i386/ |
| H A D | endian.h | 67 #if !defined(ntohl) 68 static __inline__ unsigned long ntohl(unsigned long); 71 ntohl(unsigned long value) in ntohl() function 85 #define htonl ntohl 88 #define NTOHL(x) (x) = ntohl((unsigned long)x)
|
| /xnu-12377.1.9/bsd/netinet/ |
| H A D | ip_ecn.c | 135 inner8 = (ntohl(*inner) >> 20) & 0xff; in ip6_ecn_ingress() 150 outer8 = (ntohl(*outer) >> 20) & 0xff; in ip6_ecn_egress() 151 inner8 = (ntohl(*inner) >> 20) & 0xff; in ip6_ecn_egress() 191 outer8 = (ntohl(*outer) >> 20) & 0xff; in ip46_ecn_egress() 208 inner8 = (ntohl(*inner) >> 20) & 0xff; in ip64_ecn_ingress() 225 inner8 = (ntohl(*inner) >> 20) & 0xff; in ip64_ecn_egress()
|
| H A D | tcp_log.h | 114 (*(const __uint32_t *)(const void *)(&(a)->s6_addr[8]) == ntohl(0x0000ffff)) && \ 115 (*(const __uint32_t *)(const void *)(&(a)->s6_addr[12]) == ntohl(INADDR_LOOPBACK))) 151 if (ntohl(inp->inp_laddr.s_addr) == INADDR_LOOPBACK || in tcp_is_log_enabled() 152 ntohl(inp->inp_faddr.s_addr) == INADDR_LOOPBACK) { in tcp_is_log_enabled() 156 } else if (ntohl(inp->inp_laddr.s_addr) != INADDR_ANY) { in tcp_is_log_enabled()
|
| H A D | dhcp.h | 97 #define dhcp_time_ntoh ntohl 99 #define dhcp_lease_ntoh ntohl
|
| H A D | udp_log.h | 87 if (ntohl(inp->inp_laddr.s_addr) == INADDR_LOOPBACK || in udp_is_log_enabled() 88 ntohl(inp->inp_faddr.s_addr) == INADDR_LOOPBACK) { in udp_is_log_enabled()
|
| H A D | in_gif.c | 156 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; in in_gif_output() 303 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; in in_gif_input() 375 if (IN_MULTICAST(ntohl(ip.ip_src.s_addr))) { in gif_encapcheck4() 378 switch ((ntohl(ip.ip_src.s_addr) & 0xff000000) >> 24) { in gif_encapcheck4()
|
| H A D | tcp_sack.c | 446 sack.start = ntohl(sack.start); in tcp_sack_doack() 447 sack.end = ntohl(sack.end); in tcp_sack_doack() 891 first_sack.start = ntohl(first_sack.start); in tcp_sack_process_dsack() 892 first_sack.end = ntohl(first_sack.end); in tcp_sack_process_dsack() 897 second_sack.start = ntohl(second_sack.start); in tcp_sack_process_dsack() 898 second_sack.end = ntohl(second_sack.end); in tcp_sack_process_dsack()
|
| /xnu-12377.1.9/libsyscall/mach/servers/ |
| H A D | key_defs.h | 81 (key).key_longs[0] = ntohl((key).key_longs[0]); \ 82 (key).key_longs[1] = ntohl((key).key_longs[1]); \ 83 (key).key_longs[2] = ntohl((key).key_longs[2]); \ 84 (key).key_longs[3] = ntohl((key).key_longs[3]); \
|
| /xnu-12377.1.9/bsd/sys/ |
| H A D | _endian.h | 105 __uint32_t ntohl(__uint32_t); 111 #define ntohl(x) ((__uint32_t)(x)) 137 #define ntohl(x) __DARWIN_OSSwapInt32(x) 143 #define ntohl(x) ((__uint32_t)__builtin_bswap32((__uint32_t)(x))) 157 #define NTOHL(x) (x) = ntohl((__uint32_t)x)
|
| /xnu-12377.1.9/bsd/net/ |
| H A D | nat464_utils.c | 128 if (IN_ZERONET(ntohl(addrv4->s_addr)) || // 0.0.0.0/8 Source hosts on local network in nat464_synthesize_ipv6() 129 IN_LOOPBACK(ntohl(addrv4->s_addr)) || // 127.0.0.0/8 Loopback in nat464_synthesize_ipv6() 130 IN_LINKLOCAL(ntohl(addrv4->s_addr)) || // 169.254.0.0/16 Link Local in nat464_synthesize_ipv6() 131 IN_DS_LITE(ntohl(addrv4->s_addr)) || // 192.0.0.0/29 DS-Lite in nat464_synthesize_ipv6() 132 IN_6TO4_RELAY_ANYCAST(ntohl(addrv4->s_addr)) || // 192.88.99.0/24 6to4 Relay Anycast in nat464_synthesize_ipv6() 133 IN_MULTICAST(ntohl(addrv4->s_addr)) || // 224.0.0.0/4 Multicast in nat464_synthesize_ipv6() 141 if (IN_PRIVATE(ntohl(addrv4->s_addr)) || // 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 Private-Use in nat464_synthesize_ipv6() 142 IN_SHARED_ADDRESS_SPACE(ntohl(addrv4->s_addr))) { // 100.64.0.0/10 Shared Address Space in nat464_synthesize_ipv6() 282 mtu = ntohl(icmp6->icmp6_mtu); in nat464_translate_icmp() 322 ptr = ntohl(icmp6->icmp6_pptr); in nat464_translate_icmp() [all …]
|
| H A D | if_stf.c | 554 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; in stf_pre_output() 651 if (IN_MULTICAST(ntohl(in->s_addr))) { in stf_checkaddr4() 654 switch ((ntohl(in->s_addr) & 0xff000000) >> 24) { in stf_checkaddr4() 699 (u_int32_t)ntohl(sin.sin_addr.s_addr)); in stf_checkaddr4() 798 itos = (ntohl(ip6.ip6_flow) >> 20) & 0xff; in in_stf_input()
|
| H A D | pf_norm.c | 330 ntohl(frag->fr_id6), in pf_purge_expired_fragments() 354 ntohl(frag->fr_id6), in pf_purge_expired_fragments() 1555 DPFPRINTF(("frag6cache[%d]: new %d-%d\n", ntohl(fh->ip6f_ident), in pf_frag6cache() 1582 ntohl(fh->ip6f_ident), frp->fr_off, frp->fr_end, in pf_frag6cache() 1589 ntohl(fh->ip6f_ident), frp->fr_off, frp->fr_end, in pf_frag6cache() 1601 ntohl(fh->ip6f_ident), precut, frp->fr_off, in pf_frag6cache() 1651 ntohl(fh->ip6f_ident), -precut, frp->fr_off, in pf_frag6cache() 1674 ntohl(fh->ip6f_ident), off, fr_max, fra->fr_off, in pf_frag6cache() 1681 ntohl(fh->ip6f_ident), aftercut, off, fr_max, in pf_frag6cache() 1709 ntohl(fh->ip6f_ident), -aftercut, off, fr_max, in pf_frag6cache() [all …]
|
| /xnu-12377.1.9/bsd/net/classq/ |
| H A D | classq_util.c | 130 flowlabel = ntohl(ip6->ip6_flow); in read_dsfield() 198 flowlabel = ntohl(ip6->ip6_flow); in write_dsfield() 294 flowlabel = ntohl(ip6->ip6_flow); in mark_ecn()
|
| /xnu-12377.1.9/tests/ |
| H A D | codesigntests.c | 38 bufferlen = ntohl(len); in get_blob() 57 bufferlen2 = ntohl(len); in get_blob()
|
| /xnu-12377.1.9/osfmk/kdp/ |
| H A D | kdp_udp.h | 63 #define ntohl(x) OSSwapBigToHostInt32(x) macro
|