Home
last modified time | relevance | path

Searched refs:htonl (Results 1 – 25 of 107) sorted by relevance

12345

/xnu-12377.61.12/bsd/netinet/
H A Dip_ecn.c137 *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 Ddhcp.h96 #define dhcp_time_hton htonl
98 #define dhcp_lease_hton htonl
H A Dtcp_output.c674 *lp++ = htonl((TCPOPT_ACCECN1 << 24) | (len << 16) | ((e1b >> 8) & 0xffff)); in tcp_add_accecn_option()
677 *lp++ = htonl((TCPOPT_ACCECN0 << 24) | (len << 16) | ((e0b >> 8) & 0xffff)); in tcp_add_accecn_option()
685 *lp++ = htonl((TCPOPT_ACCECN1 << 24) | (len << 16) | ((e1b >> 8) & 0xffff)); in tcp_add_accecn_option()
686 *lp++ = htonl(((e1b & 0xff) << 24) | (ceb & 0xffffff)); in tcp_add_accecn_option()
688 *lp++ = htonl((TCPOPT_ACCECN0 << 24) | (len << 16) | ((e0b >> 8) & 0xffff)); in tcp_add_accecn_option()
689 *lp++ = htonl(((e0b & 0xff) << 24) | (ceb & 0xffffff)); in tcp_add_accecn_option()
700 *lp++ = htonl((TCPOPT_ACCECN1 << 24) | (len << 16) | ((e1b >> 8) & 0xffff)); in tcp_add_accecn_option()
701 *lp++ = htonl(((e1b & 0xff) << 24) | (ceb & 0xffffff)); in tcp_add_accecn_option()
702 *lp++ = htonl(((e0b & 0xffffff) << 8) | TCPOPT_NOP); in tcp_add_accecn_option()
704 *lp++ = htonl((TCPOPT_ACCECN0 << 24) | (len << 16) | ((e0b >> 8) & 0xffff)); in tcp_add_accecn_option()
[all …]
H A Dmptcp_opt.c288 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.61.12/tests/
H A Dmacho_size_63133398.c3193 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 Dtest_ip_drop_membership.c107 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 Dnet_siocdifaddr.c89 addr.s_addr = htonl(IN_LINKLOCALNETNUM + 1); in test_siocdifaddr()
90 mask.s_addr = htonl(IN_CLASSB_NET); in test_siocdifaddr()
H A Daqm_qdelay_utun.c195 tun_addr1.s_addr = htonl(ifaddr);
196 tun_addr2.s_addr = htonl(ifaddr + 1);
197 mask.s_addr = htonl(0xffffffff);
H A Dv4mappedv6_recvpktinfo.c78 serveraddr.sin_addr.s_addr = htonl(INADDR_ANY); in listener_thread()
152 .s_addr = htonl(INADDR_LOOPBACK)
/xnu-12377.61.12/osfmk/i386/
H A Dendian.h83 #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.61.12/libsyscall/mach/servers/
H A Dkey_defs.h88 (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.61.12/bsd/sys/
H A D_endian.h106 __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.61.12/tests/skywalk/
H A Dskt_flowswitch_ns_reserve.c295 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 Dskt_reass.c243 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 Dskt_fswbinds.c66 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()
H A Dskt_listener.c117 zero_ip.s_addr = htonl(INADDR_ANY); in skt_listener_main()
294 zero_ip.s_addr = htonl(INADDR_ANY); in skt_listener_stress_main()
360 zero_ip = (struct in_addr){.s_addr = htonl(INADDR_ANY)}; in skt_listener_reuse_main()
/xnu-12377.61.12/bsd/netinet6/
H A Din6_cksum.c229 htonl(nxt + len)); in inet6_cksum()
295 htonl(nxt + len)); in inet6_cksum_buffer()
/xnu-12377.61.12/bsd/skywalk/nexus/flowswitch/
H A Dfsw_qos.c59 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.61.12/bsd/kern/
H A Dubc_subr.c3504 superblob->magic = htonl(CSMAGIC_EMBEDDED_SIGNATURE); in ubc_cs_reconstitute_code_signature()
3505 superblob->length = htonl((uint32_t)new_blob_size); in ubc_cs_reconstitute_code_signature()
3506 superblob->count = htonl(num_blobs); in ubc_cs_reconstitute_code_signature()
3512 superblob->index[blob_index].offset = htonl(blob_offset); in ubc_cs_reconstitute_code_signature()
3514 superblob->index[blob_index].type = htonl(CSSLOT_ALTERNATE_CODEDIRECTORIES); in ubc_cs_reconstitute_code_signature()
3516 superblob->index[blob_index].type = htonl(CSSLOT_CODEDIRECTORY); in ubc_cs_reconstitute_code_signature()
3534 superblob->index[blob_index].offset = htonl(blob_offset); in ubc_cs_reconstitute_code_signature()
3535 superblob->index[blob_index].type = htonl(CSSLOT_DER_ENTITLEMENTS); in ubc_cs_reconstitute_code_signature()
3544 superblob->index[blob_index].offset = htonl(blob_offset); in ubc_cs_reconstitute_code_signature()
3545 superblob->index[blob_index].type = htonl(CSSLOT_LAUNCH_CONSTRAINT_SELF); in ubc_cs_reconstitute_code_signature()
[all …]
/xnu-12377.61.12/bsd/net/
H A Dif_pflog.c378 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 Dether_if_module.c543 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.61.12/osfmk/kdp/
H A Dkdp_udp.h65 #define htonl(x) OSSwapHostToBigInt32(x) macro
/xnu-12377.61.12/bsd/net/classq/
H A Dclassq_util.c203 ip6->ip6_flow = htonl(flowlabel); in write_dsfield()
310 ip6->ip6_flow = htonl(flowlabel); in mark_ecn()
/xnu-12377.61.12/bsd/nfs/
H A Dxdr_subs.h86 #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-12377.61.12/libkern/net/
H A Dinet_aton.c140 addr->s_addr = htonl(val); in inet_aton()

12345