| /xnu-12377.1.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 | 614 *lp++ = htonl((TCPOPT_ACCECN1 << 24) | (len << 16) | ((e1b >> 8) & 0xffff)); in tcp_add_accecn_option() 617 *lp++ = htonl((TCPOPT_ACCECN0 << 24) | (len << 16) | ((e0b >> 8) & 0xffff)); in tcp_add_accecn_option() 625 *lp++ = htonl((TCPOPT_ACCECN1 << 24) | (len << 16) | ((e1b >> 8) & 0xffff)); in tcp_add_accecn_option() 626 *lp++ = htonl(((e1b & 0xff) << 24) | (ceb & 0xffffff)); in tcp_add_accecn_option() 628 *lp++ = htonl((TCPOPT_ACCECN0 << 24) | (len << 16) | ((e0b >> 8) & 0xffff)); in tcp_add_accecn_option() 629 *lp++ = htonl(((e0b & 0xff) << 24) | (ceb & 0xffffff)); in tcp_add_accecn_option() 640 *lp++ = htonl((TCPOPT_ACCECN1 << 24) | (len << 16) | ((e1b >> 8) & 0xffff)); in tcp_add_accecn_option() 641 *lp++ = htonl(((e1b & 0xff) << 24) | (ceb & 0xffffff)); in tcp_add_accecn_option() 642 *lp++ = htonl(((e0b & 0xffffff) << 8) | TCPOPT_NOP); in tcp_add_accecn_option() 644 *lp++ = htonl((TCPOPT_ACCECN0 << 24) | (len << 16) | ((e0b >> 8) & 0xffff)); in tcp_add_accecn_option() [all …]
|
| H A D | mptcp_opt.c | 288 infin_opt.mdss_dsn = htonl(infin_opt.mdss_dsn); in mptcp_send_infinite_mapping() 289 infin_opt.mdss_subflow_seqn = htonl(infin_opt.mdss_subflow_seqn); in mptcp_send_infinite_mapping() 571 htonl(MPTCP_DATAACK_LOW32(mp_tp->mpt_rcvnxt)); in mptcp_setup_opts() 574 dsn_ack_opt.mdss_subflow_seqn = htonl( in mptcp_setup_opts() 628 dsn_opt.mdss_dsn = htonl(dsn_opt.mdss_dsn); in mptcp_setup_opts() 629 dsn_opt.mdss_subflow_seqn = htonl(dsn_opt.mdss_subflow_seqn); in mptcp_setup_opts() 662 htonl(MPTCP_DATAACK_LOW32(mp_tp->mpt_rcvnxt)); in mptcp_setup_opts() 721 htonl(MPTCP_DATAACK_LOW32(mp_tp->mpt_rcvnxt)); in mptcp_setup_opts() 739 dss_ack_opt.mdss_dsn = htonl(dss_ack_opt.mdss_dsn); in mptcp_setup_opts() 741 htonl(dss_ack_opt.mdss_subflow_seqn); in mptcp_setup_opts() [all …]
|
| /xnu-12377.1.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 | test_ip_drop_membership.c | 107 mreq.imr_multiaddr.s_addr = htonl(maddr); in test_ip_drop_membership() 108 mreq.imr_interface.s_addr = htonl(INADDR_LOOPBACK); in test_ip_drop_membership() 125 mreq_src.imr_multiaddr.s_addr = htonl(maddr); in test_ip_drop_membership() 126 mreq_src.imr_sourceaddr.s_addr = htonl(INADDR_LOOPBACK); in test_ip_drop_membership() 127 mreq_src.imr_interface.s_addr = htonl(INADDR_LOOPBACK); in test_ip_drop_membership()
|
| H A D | net_siocdifaddr.c | 89 addr.s_addr = htonl(IN_LINKLOCALNETNUM + 1); in test_siocdifaddr() 90 mask.s_addr = htonl(IN_CLASSB_NET); in test_siocdifaddr()
|
| H A D | aqm_qdelay_utun.c | 195 tun_addr1.s_addr = htonl(ifaddr); 196 tun_addr2.s_addr = htonl(ifaddr + 1); 197 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 | 53 filler_group.imr_multiaddr.s_addr = htonl(ntohl(inet_addr("224.0.0.3")) + j);
|
| /xnu-12377.1.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-12377.1.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-12377.1.9/bsd/sys/ |
| H A D | _endian.h | 106 __uint32_t htonl(__uint32_t); 113 #define htonl(x) ((__uint32_t)(x)) 138 #define htonl(x) __DARWIN_OSSwapInt32(x) 144 #define htonl(x) ((__uint32_t)__builtin_bswap32((__uint32_t)(x))) 160 #define HTONL(x) (x) = htonl((__uint32_t)x)
|
| /xnu-12377.1.9/tests/skywalk/ |
| H A D | skt_flowswitch_ns_reserve.c | 295 nfr.nfr_saddr.sin.sin_addr.s_addr = htonl(INADDR_ANY); in skt_flowswitch_ns_sky() 543 sin->sin_addr.s_addr = htonl(INADDR_ANY); in skt_flowswitch_ns_check_v4mappedv6addr() 699 sin->sin_addr.s_addr = htonl(INADDR_ANY); in skt_flowswitch_ns_reserve_main2() 726 sin->sin_addr.s_addr = htonl(INADDR_ANY); in skt_flowswitch_ns_reserve_main2() 779 sin->sin_addr.s_addr = htonl(INADDR_ANY); in skt_flowswitch_ns_reserve_main2() 806 sin->sin_addr.s_addr = htonl(INADDR_ANY); in skt_flowswitch_ns_reserve_main2() 892 nfr.nfr_saddr.sin.sin_addr.s_addr = htonl(INADDR_ANY); in skt_flowswitch_ns_reserve_main() 920 assert(htonl(INADDR_ANY) == nfr.nfr_saddr.sin.sin_addr.s_addr); in skt_flowswitch_ns_reserve_main() 952 nfr.nfr_saddr.sin.sin_addr.s_addr = htonl(INADDR_ANY); in skt_flowswitch_ns_reserve_main() 983 sa.sin_addr.s_addr = htonl(INADDR_ANY); in skt_flowswitch_ns_reserve_main() [all …]
|
| H A D | skt_reass.c | 243 uint32_t address_family = htonl(AF_INET6); in bad_fraglen_build() 306 assert(icmp6->icmp6_pptr == htonl(__builtin_offsetof(struct ip6_hdr, in bad_fraglen_match() 317 uint32_t address_family = htonl(AF_INET6); in timeout_build() 396 uint32_t address_family = htonl(AF_INET6); in atomic_build() 441 htonl(IPPROTO_ICMPV6 + sizeof(struct icmp6_hdr) + dlen)); in atomic_build() 490 uint32_t address_family = htonl(AF_INET6); in queue_limit_build()
|
| H A D | skt_fswbinds.c | 66 nfr.nfr_saddr.sin.sin_addr.s_addr = htonl(INADDR_ANY); in skt_fswbind_common() 98 nfr.nfr_saddr.sin.sin_addr.s_addr = htonl(INADDR_ANY); in skt_fswbind_common()
|
| /xnu-12377.1.9/bsd/netinet6/ |
| H A D | in6_cksum.c | 229 htonl(nxt + len)); in inet6_cksum() 295 htonl(nxt + len)); in inet6_cksum_buffer()
|
| /xnu-12377.1.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-12377.1.9/bsd/kern/ |
| H A D | ubc_subr.c | 3457 superblob->magic = htonl(CSMAGIC_EMBEDDED_SIGNATURE); in ubc_cs_reconstitute_code_signature() 3458 superblob->length = htonl((uint32_t)new_blob_size); in ubc_cs_reconstitute_code_signature() 3459 superblob->count = htonl(num_blobs); in ubc_cs_reconstitute_code_signature() 3465 superblob->index[blob_index].offset = htonl(blob_offset); in ubc_cs_reconstitute_code_signature() 3467 superblob->index[blob_index].type = htonl(CSSLOT_ALTERNATE_CODEDIRECTORIES); in ubc_cs_reconstitute_code_signature() 3469 superblob->index[blob_index].type = htonl(CSSLOT_CODEDIRECTORY); in ubc_cs_reconstitute_code_signature() 3487 superblob->index[blob_index].offset = htonl(blob_offset); in ubc_cs_reconstitute_code_signature() 3488 superblob->index[blob_index].type = htonl(CSSLOT_DER_ENTITLEMENTS); in ubc_cs_reconstitute_code_signature() 3497 superblob->index[blob_index].offset = htonl(blob_offset); in ubc_cs_reconstitute_code_signature() 3498 superblob->index[blob_index].type = htonl(CSSLOT_LAUNCH_CONSTRAINT_SELF); in ubc_cs_reconstitute_code_signature() [all …]
|
| /xnu-12377.1.9/bsd/net/ |
| H A D | if_pflog.c | 378 hdr.rulenr = htonl(rm->nr); in pflog_packet() 381 hdr.rulenr = htonl(am->nr); in pflog_packet() 382 hdr.subrulenr = htonl(rm->nr); in pflog_packet()
|
| H A D | ether_if_module.c | 543 if ((extProto1 & htonl(0xFFFFFF00)) == htonl(0xAAAA0300)) { in ether_demux() 548 extProto1 &= htonl(0x000000FF); in ether_demux() 551 extProto1 &= htonl(0xFFFFFF00); in ether_demux()
|
| /xnu-12377.1.9/osfmk/kdp/ |
| H A D | kdp_udp.h | 65 #define htonl(x) OSSwapHostToBigInt32(x) macro
|
| /xnu-12377.1.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-12377.1.9/libkern/net/ |
| H A D | inet_aton.c | 140 addr->s_addr = htonl(val); in inet_aton()
|
| /xnu-12377.1.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]); \
|