| /xnu-10063.101.15/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() 282 (u_int32_t)ntohl(spi), (u_int32_t)ntohl(spi))); in esp4_input_extended() 293 (u_int32_t)ntohl(spi), (u_int32_t)ntohl(spi))); in esp4_input_extended() 301 (u_int32_t)ntohl(spi), (u_int32_t)ntohl(spi))); in esp4_input_extended() 315 seq = ntohl(((struct newesp *)esp)->esp_seq); in esp4_input_extended() 989 (u_int32_t)ntohl(spi), (u_int32_t)ntohl(spi), ntohl(((struct newesp *)esp)->esp_seq), in esp6_input_extended() 1010 (u_int32_t)ntohl(spi), (u_int32_t)ntohl(spi))); in esp6_input_extended() 1019 (u_int32_t)ntohl(spi), (u_int32_t)ntohl(spi))); in esp6_input_extended() 1033 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 | 611 "AES_BLOCKLEN, SPI 0x%08x", input_data_len, ntohl(sav->spi)); in esp_aes_cbc_encrypt_data() 620 esp_log_err("encrypt failed %d, SPI 0x%08x", rc, ntohl(sav->spi)); in esp_aes_cbc_encrypt_data() 646 ivlen, ntohl(sav->spi)); in esp_aes_cbc_decrypt_data() 661 esp_log_err("decrypt failed %d, SPI 0x%08x", rc, ntohl(sav->spi)); in esp_aes_cbc_decrypt_data() 913 __FUNCTION__, soff, m->m_pkthdr.len, ntohl(sav->spi))); in esp_gcm_encrypt_aes() 1053 __FUNCTION__, soff, m->m_pkthdr.len, ntohl(sav->spi))); in esp_gcm_decrypt_aes() 1082 ntohl(sav->spi)); in esp_aes_gcm_encrypt_data() 1089 rc, ntohl(sav->spi)); in esp_aes_gcm_encrypt_data() 1109 rc, ntohl(sav->spi)); in esp_aes_gcm_encrypt_data() 1121 rc, ntohl(sav->spi)); in esp_aes_gcm_encrypt_data() [all …]
|
| H A D | ah_input.c | 166 (u_int32_t)ntohl(spi))); in ah4_input() 177 (u_int32_t)ntohl(spi))); in ah4_input() 186 (u_int32_t)ntohl(spi))); in ah4_input() 260 if (ipsec_chkreplay(ntohl(((struct newah *)ah)->ah_seq), sav, 0)) { in ah4_input() 349 if (ipsec_updatereplay(ntohl(((struct newah *)ah)->ah_seq), sav, 0)) { in ah4_input() 625 (u_int32_t)ntohl(spi))); in ah6_input() 636 (u_int32_t)ntohl(spi))); in ah6_input() 645 (u_int32_t)ntohl(spi))); in ah6_input() 692 if (ipsec_chkreplay(ntohl(((struct newah *)ah)->ah_seq), sav, 0)) { in ah6_input() 763 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 | 1233 "ESP_CBC_DES_BLOCKLEN, SPI 0x%08x", input_data_len, ntohl(sav->spi)); in esp_cbc_des_encrypt_data() 1249 esp_log_err("encrypt failed %d, SPI 0x%08x", rc, ntohl(sav->spi)); in esp_cbc_des_encrypt_data() 1282 "ESP_CBC_DES_BLOCKLEN, SPI 0x%08x", input_data_len, ntohl(sav->spi)); in esp_cbc_des_decrypt_data() 1293 esp_log_err("decrypt failed %d, SPI 0x%08x", rc, ntohl(sav->spi)); in esp_cbc_des_decrypt_data() 1330 "ESP_CBC_3DES_BLOCKLEN, SPI 0x%08x", input_data_len, ntohl(sav->spi)); in esp_cbc_3des_encrypt_data() 1346 esp_log_err("encrypt failed %d, SPI 0x%08x", rc, ntohl(sav->spi)); in esp_cbc_3des_encrypt_data() 1379 "ESP_CBC_3DES_BLOCKLEN, SPI 0x%08x", input_data_len, ntohl(sav->spi)); in esp_cbc_3des_decrypt_data() 1390 esp_log_err("decrypt failed %d, SPI 0x%08x", rc, ntohl(sav->spi)); in esp_cbc_3des_decrypt_data() 1490 esp_log_info("ah schedule failed %d, SPI 0x%08x\n", error, ntohl(sav->spi)); in esp_auth() 1545 "SPI 0x%08x\n", input_data_len, ntohl(sav->spi)); in esp_auth_data() [all …]
|
| H A D | in6.h | 320 (*(const __uint32_t *)(const void *)(&(a)->s6_addr[12]) == ntohl(1))) 330 (*(const __uint32_t *)(const void *)(&(a)->s6_addr[12]) != ntohl(1))) 339 ntohl(0x0000ffff)))
|
| /xnu-10063.101.15/bsd/kern/ |
| H A D | ubc_subr.c | 265 uint32_t nCodeSlots = ntohl(cd->nCodeSlots); in hashes() 269 if ((ntohl(cd->version) >= CS_SUPPORTSSCATTER) && (ntohl(cd->scatterOffset))) { in hashes() 272 ((const char*)cd + ntohl(cd->scatterOffset)); in hashes() 276 if ((const char*)scatter > (const char*)cd + ntohl(cd->length)) { in hashes() 283 scount = ntohl(scatter->count); in hashes() 284 uint32_t new_base = ntohl(scatter->base); in hashes() 310 base = (const unsigned char *)cd + ntohl(cd->hashOffset) + in hashes() 331 base = (const unsigned char *)cd + ntohl(cd->hashOffset); in hashes() 371 if (ntohl(cd->magic) != CSMAGIC_CODEDIRECTORY) { in cs_validate_codedirectory() 387 if (length < ntohl(cd->hashOffset)) { in cs_validate_codedirectory() [all …]
|
| H A D | kern_authorization.c | 1126 uint32_t invert_magic = ntohl(KAUTH_FILESEC_MAGIC); in kauth_filesec_acl_setendian() 1152 compare_acl_entrycount = ntohl(acl->acl_entrycount); in kauth_filesec_acl_setendian() 1164 fsec->fsec_magic = ntohl(fsec->fsec_magic); in kauth_filesec_acl_setendian() 1165 acl->acl_entrycount = ntohl(acl->acl_entrycount); in kauth_filesec_acl_setendian() 1167 acl->acl_flags = ntohl(acl->acl_flags); in kauth_filesec_acl_setendian() 1171 acl->acl_ace[i].ace_flags = ntohl(acl->acl_ace[i].ace_flags); in kauth_filesec_acl_setendian() 1172 acl->acl_ace[i].ace_rights = ntohl(acl->acl_ace[i].ace_rights); in kauth_filesec_acl_setendian()
|
| /xnu-10063.101.15/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-10063.101.15/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 | dhcp.h | 97 #define dhcp_time_ntoh ntohl 99 #define dhcp_lease_ntoh ntohl
|
| H A D | udp_log.h | 77 if (ntohl(inp->inp_laddr.s_addr) == INADDR_LOOPBACK || in udp_is_log_enabled() 78 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 | 458 sack.start = ntohl(sack.start); in tcp_sack_doack() 459 sack.end = ntohl(sack.end); in tcp_sack_doack() 887 first_sack.start = ntohl(first_sack.start); in tcp_sack_process_dsack() 888 first_sack.end = ntohl(first_sack.end); in tcp_sack_process_dsack() 893 second_sack.start = ntohl(second_sack.start); in tcp_sack_process_dsack() 894 second_sack.end = ntohl(second_sack.end); in tcp_sack_process_dsack()
|
| H A D | tcp_debug.c | 200 seq = ntohl(seq); 201 ack = ntohl(ack);
|
| /xnu-10063.101.15/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-10063.101.15/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-10063.101.15/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() 270 mtu = ntohl(icmp6->icmp6_mtu); in nat464_translate_icmp() 310 ptr = ntohl(icmp6->icmp6_pptr); in nat464_translate_icmp() [all …]
|
| H A D | if_stf.c | 553 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; in stf_pre_output() 650 if (IN_MULTICAST(ntohl(in->s_addr))) { in stf_checkaddr4() 653 switch ((ntohl(in->s_addr) & 0xff000000) >> 24) { in stf_checkaddr4() 698 (u_int32_t)ntohl(sin.sin_addr.s_addr)); in stf_checkaddr4() 797 itos = (ntohl(ip6.ip6_flow) >> 20) & 0xff; in in_stf_input()
|
| H A D | pf_norm.c | 329 ntohl(frag->fr_id6), in pf_purge_expired_fragments() 353 ntohl(frag->fr_id6), in pf_purge_expired_fragments() 1550 DPFPRINTF(("frag6cache[%d]: new %d-%d\n", ntohl(fh->ip6f_ident), in pf_frag6cache() 1577 ntohl(fh->ip6f_ident), frp->fr_off, frp->fr_end, in pf_frag6cache() 1584 ntohl(fh->ip6f_ident), frp->fr_off, frp->fr_end, in pf_frag6cache() 1596 ntohl(fh->ip6f_ident), precut, frp->fr_off, in pf_frag6cache() 1646 ntohl(fh->ip6f_ident), -precut, frp->fr_off, in pf_frag6cache() 1669 ntohl(fh->ip6f_ident), off, fr_max, fra->fr_off, in pf_frag6cache() 1676 ntohl(fh->ip6f_ident), aftercut, off, fr_max, in pf_frag6cache() 1704 ntohl(fh->ip6f_ident), -aftercut, off, fr_max, in pf_frag6cache() [all …]
|
| /xnu-10063.101.15/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-10063.101.15/tests/ |
| H A D | codesigntests.c | 36 bufferlen = ntohl(len); in get_blob() 55 bufferlen2 = ntohl(len); in get_blob()
|
| /xnu-10063.101.15/osfmk/kdp/ |
| H A D | kdp_udp.h | 63 #define ntohl(x) OSSwapBigToHostInt32(x) macro
|