| /xnu-8792.41.9/bsd/netinet6/ |
| H A D | esp_chachapoly.c | 100 ntohl(sav->spi)); in esp_chachapoly_mature() 105 ntohl(sav->spi)); in esp_chachapoly_mature() 111 sav->alg_enc, ntohl(sav->spi)); in esp_chachapoly_mature() 117 ntohl(sav->spi)); in esp_chachapoly_mature() 124 sav->alg_enc, ntohl(sav->spi)); in esp_chachapoly_mature() 130 sav->key_enc->sadb_key_bits, ntohl(sav->spi)); in esp_chachapoly_mature() 135 ntohl(sav->spi), in esp_chachapoly_mature() 159 _KEYLEN(sav->key_enc), ntohl(sav->spi)); in esp_chachapoly_schedule() 169 sav->ivlen, ntohl(sav->spi)); in esp_chachapoly_schedule() 177 rc, ntohl(sav->spi)); in esp_chachapoly_schedule() [all …]
|
| H A D | esp_input.c | 197 ntohl(spi), seq, in esp_input_log() 199 ntohl(th.th_seq), proto_len); in esp_input_log() 278 (u_int32_t)ntohl(spi), (u_int32_t)ntohl(spi))); in esp4_input_extended() 289 (u_int32_t)ntohl(spi), (u_int32_t)ntohl(spi))); in esp4_input_extended() 297 (u_int32_t)ntohl(spi), (u_int32_t)ntohl(spi))); in esp4_input_extended() 311 seq = ntohl(((struct newesp *)esp)->esp_seq); in esp4_input_extended() 700 ipsec_save_wake_packet(m, ntohl(spi), seq); in esp4_input_extended() 839 ipsec_save_wake_packet(m, ntohl(spi), seq); in esp4_input_extended() 979 (u_int32_t)ntohl(spi), (u_int32_t)ntohl(spi), ntohl(((struct newesp *)esp)->esp_seq), in esp6_input_extended() 999 (u_int32_t)ntohl(spi), (u_int32_t)ntohl(spi))); in esp6_input_extended() [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_output.c | 295 dscp = (ntohl(ip6->ip6_flow) & IP6FLOW_DSCP_MASK) >> IP6FLOW_DSCP_SHIFT; in esp_output() 314 (u_int32_t)ntohl(ip->ip_src.s_addr), in esp_output() 315 (u_int32_t)ntohl(ip->ip_dst.s_addr), in esp_output() 316 (u_int32_t)ntohl(sav->spi))); in esp_output() 323 (u_int32_t)ntohl(sav->spi))); in esp_output() 337 "SPI=%u\n", (u_int32_t)ntohl(sav->spi))); in esp_output() 913 ntohl(spi), seq, in esp_output() 915 ntohl(th.th_seq), ntohl(th.th_ack), in esp_output()
|
| 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-8792.41.9/bsd/kern/ |
| H A D | ubc_subr.c | 267 uint32_t nCodeSlots = ntohl(cd->nCodeSlots); in hashes() 271 if ((ntohl(cd->version) >= CS_SUPPORTSSCATTER) && (ntohl(cd->scatterOffset))) { in hashes() 274 ((const char*)cd + ntohl(cd->scatterOffset)); in hashes() 278 if ((const char*)scatter > (const char*)cd + ntohl(cd->length)) { in hashes() 285 scount = ntohl(scatter->count); in hashes() 286 uint32_t new_base = ntohl(scatter->base); in hashes() 312 base = (const unsigned char *)cd + ntohl(cd->hashOffset) + in hashes() 333 base = (const unsigned char *)cd + ntohl(cd->hashOffset); in hashes() 373 if (ntohl(cd->magic) != CSMAGIC_CODEDIRECTORY) { in cs_validate_codedirectory() 389 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-8792.41.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-8792.41.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 | dhcp.h | 97 #define dhcp_time_ntoh ntohl 99 #define dhcp_lease_ntoh ntohl
|
| H A D | in_gif.c | 157 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; in in_gif_output() 304 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; in in_gif_input() 376 if (IN_MULTICAST(ntohl(ip.ip_src.s_addr))) { in gif_encapcheck4() 379 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);
|
| H A D | tcp_log.h | 125 if (ntohl(tp->t_inpcb->inp_laddr.s_addr) == INADDR_LOOPBACK || in tcp_is_log_enabled() 126 ntohl(tp->t_inpcb->inp_faddr.s_addr) == INADDR_LOOPBACK) { in tcp_is_log_enabled()
|
| /xnu-8792.41.9/bsd/sys/ |
| H A D | _endian.h | 104 __uint32_t ntohl(__uint32_t); 110 #define ntohl(x) ((__uint32_t)(x)) 136 #define ntohl(x) __DARWIN_OSSwapInt32(x) 142 #define ntohl(x) ((__uint32_t)__builtin_bswap32((__uint32_t)(x))) 156 #define NTOHL(x) (x) = ntohl((__uint32_t)x)
|
| /xnu-8792.41.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-8792.41.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() 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 | 551 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; in stf_pre_output() 648 if (IN_MULTICAST(ntohl(in->s_addr))) { in stf_checkaddr4() 651 switch ((ntohl(in->s_addr) & 0xff000000) >> 24) { in stf_checkaddr4() 696 (u_int32_t)ntohl(sin.sin_addr.s_addr)); in stf_checkaddr4() 792 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-8792.41.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-8792.41.9/tests/ |
| H A D | codesigntests.c | 36 bufferlen = ntohl(len); in get_blob() 55 bufferlen2 = ntohl(len); in get_blob()
|
| /xnu-8792.41.9/osfmk/kdp/ |
| H A D | kdp_udp.h | 63 #define ntohl(x) OSSwapBigToHostInt32(x) macro
|
| /xnu-8792.41.9/bsd/nfs/ |
| H A D | xdr_subs.h | 85 #define fxdr_unsigned(t, v) ((t)ntohl((uint32_t)(v))) 89 ((uint32_t *)(t))[_QUAD_HIGHWORD] = ntohl(((uint32_t *)(f))[0]); \ 90 ((uint32_t *)(t))[_QUAD_LOWWORD] = ntohl(((uint32_t *)(f))[1]); \
|
| /xnu-8792.41.9/bsd/dev/dtrace/scripts/ |
| H A D | tcp.d | 133 tcp_seq = ntohl(T->th_seq); 134 tcp_ack = ntohl(T->th_ack);
|