| /xnu-8792.41.9/bsd/netinet/ |
| H A D | ip_ecn.c | 137 *outer &= ~htonl(0xff << 20); in ip6_ecn_ingress() 138 *outer |= htonl((u_int32_t)outer8 << 20); in ip6_ecn_ingress() 155 *inner &= ~htonl(0xff << 20); in ip6_ecn_egress() 156 *inner |= htonl((u_int32_t)inner8 << 20); in ip6_ecn_egress() 174 *outer &= ~htonl(0xff << 20); in ip46_ecn_ingress() 175 *outer |= htonl((u_int32_t)outer8 << 20); in ip46_ecn_ingress() 230 *inner &= ~htonl(0xff << 20); in ip64_ecn_egress() 231 *inner |= htonl((u_int32_t)inner8 << 20); in ip64_ecn_egress()
|
| H A D | dhcp.h | 96 #define dhcp_time_hton htonl 98 #define dhcp_lease_hton htonl
|
| H A D | tcp_output.c | 587 *lp++ = htonl((TCPOPT_ACCECN1 << 24) | (len << 16) | in tcp_add_accecn_option() 596 *lp++ = htonl((TCPOPT_ACCECN1 << 24) | (len << 16) | ((e1b >> 8) & 0xffff)); in tcp_add_accecn_option() 597 *lp++ = htonl(((e1b & 0xff) << 24) | (TCPOPT_NOP << 16) | (TCPOPT_NOP << 8) | TCPOPT_NOP); in tcp_add_accecn_option() 599 *lp++ = htonl((TCPOPT_ACCECN0 << 24) | (len << 16) | ((e0b >> 8) & 0xffff)); in tcp_add_accecn_option() 600 *lp++ = htonl(((e0b & 0xff) << 24) | (TCPOPT_NOP << 16) | (TCPOPT_NOP << 8) | TCPOPT_NOP); in tcp_add_accecn_option() 608 *lp++ = htonl((TCPOPT_ACCECN1 << 24) | (len << 16) | ((e1b >> 8) & 0xffff)); in tcp_add_accecn_option() 609 *lp++ = htonl(((e1b & 0xff) << 24) | (ceb & 0xffffff)); in tcp_add_accecn_option() 611 *lp++ = htonl((TCPOPT_ACCECN0 << 24) | (len << 16) | ((e0b >> 8) & 0xffff)); in tcp_add_accecn_option() 612 *lp++ = htonl(((e0b & 0xff) << 24) | (ceb & 0xffffff)); in tcp_add_accecn_option() 624 *lp++ = htonl((TCPOPT_ACCECN1 << 24) | (len << 16) | ((e1b >> 8) & 0xffff)); in tcp_add_accecn_option() [all …]
|
| H A D | mptcp_opt.c | 287 infin_opt.mdss_dsn = htonl(infin_opt.mdss_dsn); in mptcp_send_infinite_mapping() 288 infin_opt.mdss_subflow_seqn = htonl(infin_opt.mdss_subflow_seqn); in mptcp_send_infinite_mapping() 563 htonl(MPTCP_DATAACK_LOW32(mp_tp->mpt_rcvnxt)); in mptcp_setup_opts() 566 dsn_ack_opt.mdss_subflow_seqn = htonl( in mptcp_setup_opts() 620 dsn_opt.mdss_dsn = htonl(dsn_opt.mdss_dsn); in mptcp_setup_opts() 621 dsn_opt.mdss_subflow_seqn = htonl(dsn_opt.mdss_subflow_seqn); in mptcp_setup_opts() 654 htonl(MPTCP_DATAACK_LOW32(mp_tp->mpt_rcvnxt)); in mptcp_setup_opts() 713 htonl(MPTCP_DATAACK_LOW32(mp_tp->mpt_rcvnxt)); in mptcp_setup_opts() 731 dss_ack_opt.mdss_dsn = htonl(dss_ack_opt.mdss_dsn); in mptcp_setup_opts() 733 htonl(dss_ack_opt.mdss_subflow_seqn); in mptcp_setup_opts() [all …]
|
| H A D | in_gif.c | 310 ip6->ip6_flow &= ~htonl(0xff << 20); in in_gif_input() 311 ip6->ip6_flow |= htonl((u_int32_t)itos << 20); in in_gif_input()
|
| H A D | in_cksum.c | 255 htonl(len + nxt)); in inet_cksum() 301 htonl(len + nxt)); in inet_cksum_buffer()
|
| /xnu-8792.41.9/tests/ |
| H A D | macho_size_63133398.c | 3193 fat_header->magic = htonl(FAT_MAGIC); 3194 fat_header->nfat_arch = htonl(1); 3197 fat_arch->cputype = (cpu_type_t)htonl(mach_header->cputype); 3198 fat_arch->cpusubtype = (cpu_subtype_t)htonl(mach_header->cpusubtype); 3199 fat_arch->offset = htonl(ADJUSTMENT_SIZE); 3200 fat_arch->size = htonl(dst_size); /* <-- bug */
|
| H A D | aqm_qdelay_utun.c | 196 tun_addr1.s_addr = htonl(ifaddr); 197 tun_addr2.s_addr = htonl(ifaddr + 1); 198 mask.s_addr = htonl(0xffffffff);
|
| H A D | v4mappedv6_recvpktinfo.c | 78 serveraddr.sin_addr.s_addr = htonl(INADDR_ANY); in listener_thread() 152 .s_addr = htonl(INADDR_LOOPBACK)
|
| H A D | mcast_group_race_82820812.c | 49 filler_group.imr_multiaddr.s_addr = htonl(ntohl(inet_addr("224.0.0.3")) + j);
|
| H A D | icmp_fragmented_payload.c | 242 pcb->inner_tcp_hdr->th_seq = htonl(tcp_in->th_seq); in icmp4_pcb_set_payload() 243 pcb->inner_tcp_hdr->th_ack = htonl(tcp_in->th_ack); in icmp4_pcb_set_payload()
|
| /xnu-8792.41.9/osfmk/i386/ |
| H A D | endian.h | 83 #if !defined(htonl) 84 unsigned long htonl(unsigned long); 85 #define htonl ntohl macro 90 #define HTONL(x) (x) = htonl((unsigned long)x)
|
| /xnu-8792.41.9/bsd/sys/ |
| H A D | _endian.h | 105 __uint32_t htonl(__uint32_t); 112 #define htonl(x) ((__uint32_t)(x)) 137 #define htonl(x) __DARWIN_OSSwapInt32(x) 143 #define htonl(x) ((__uint32_t)__builtin_bswap32((__uint32_t)(x))) 159 #define HTONL(x) (x) = htonl((__uint32_t)x)
|
| /xnu-8792.41.9/libsyscall/mach/servers/ |
| H A D | key_defs.h | 88 (key).key_longs[0] = htonl((key).key_longs[0]); \ 89 (key).key_longs[1] = htonl((key).key_longs[1]); \ 90 (key).key_longs[2] = htonl((key).key_longs[2]); \ 91 (key).key_longs[3] = htonl((key).key_longs[3]); \
|
| /xnu-8792.41.9/bsd/netinet6/ |
| H A D | in6_cksum.c | 229 htonl(nxt + len)); in inet6_cksum() 274 htonl(nxt + len)); in inet6_cksum_buffer()
|
| H A D | in6_gif.c | 189 ip6->ip6_flow &= ~htonl(0xff << 20); in in6_gif_output() 190 ip6->ip6_flow |= htonl((u_int32_t)otos << 20); in in6_gif_output()
|
| H A D | ah_output.c | 315 ahdr->ah_seq = htonl(sav->replay[0]->count); in ah4_output() 528 ahdr->ah_seq = htonl(sav->replay[0]->count); in ah6_output()
|
| /xnu-8792.41.9/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_qos.c | 59 ip6->ip6_flow &= ~htonl(IP6FLOW_DSCP_MASK); in fsw_qos_set_ipv6_tc() 60 ip6->ip6_flow |= htonl((u_int32_t)dscp << IP6FLOW_DSCP_SHIFT); in fsw_qos_set_ipv6_tc()
|
| /xnu-8792.41.9/bsd/kern/ |
| H A D | ubc_subr.c | 3450 superblob->magic = htonl(CSMAGIC_EMBEDDED_SIGNATURE); in ubc_cs_reconstitute_code_signature() 3451 superblob->length = htonl((uint32_t)new_blob_size); in ubc_cs_reconstitute_code_signature() 3452 superblob->count = htonl(num_blobs); in ubc_cs_reconstitute_code_signature() 3458 superblob->index[blob_index].offset = htonl(blob_offset); in ubc_cs_reconstitute_code_signature() 3460 superblob->index[blob_index].type = htonl(CSSLOT_ALTERNATE_CODEDIRECTORIES); in ubc_cs_reconstitute_code_signature() 3462 superblob->index[blob_index].type = htonl(CSSLOT_CODEDIRECTORY); in ubc_cs_reconstitute_code_signature() 3480 superblob->index[blob_index].offset = htonl(blob_offset); in ubc_cs_reconstitute_code_signature() 3481 superblob->index[blob_index].type = htonl(CSSLOT_DER_ENTITLEMENTS); in ubc_cs_reconstitute_code_signature() 3490 superblob->index[blob_index].offset = htonl(blob_offset); in ubc_cs_reconstitute_code_signature() 3491 superblob->index[blob_index].type = htonl(CSSLOT_LAUNCH_CONSTRAINT_SELF); in ubc_cs_reconstitute_code_signature() [all …]
|
| /xnu-8792.41.9/bsd/net/ |
| H A D | ether_if_module.c | 439 if ((extProto1 & htonl(0xFFFFFF00)) == htonl(0xAAAA0300)) { in ether_demux() 444 extProto1 &= htonl(0x000000FF); in ether_demux() 447 extProto1 &= htonl(0xFFFFFF00); in ether_demux()
|
| H A D | if_pflog.c | 343 hdr.rulenr = htonl(rm->nr); in pflog_packet() 346 hdr.rulenr = htonl(am->nr); in pflog_packet() 347 hdr.subrulenr = htonl(rm->nr); in pflog_packet()
|
| /xnu-8792.41.9/osfmk/kdp/ |
| H A D | kdp_udp.h | 65 #define htonl(x) OSSwapHostToBigInt32(x) macro
|
| /xnu-8792.41.9/bsd/net/classq/ |
| H A D | classq_util.c | 203 ip6->ip6_flow = htonl(flowlabel); in write_dsfield() 310 ip6->ip6_flow = htonl(flowlabel); in mark_ecn()
|
| /xnu-8792.41.9/bsd/nfs/ |
| H A D | xdr_subs.h | 86 #define txdr_unsigned(v) (htonl((uint32_t)(v))) 93 ((uint32_t *)(t))[0] = htonl(((uint32_t *)(f))[_QUAD_HIGHWORD]); \ 94 ((uint32_t *)(t))[1] = htonl(((uint32_t *)(f))[_QUAD_LOWWORD]); \
|
| /xnu-8792.41.9/libkern/net/ |
| H A D | inet_aton.c | 140 addr->s_addr = htonl(val); in inet_aton()
|