| /xnu-8020.101.4/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 | mptcp_opt.c | 301 infin_opt.mdss_dsn = htonl(infin_opt.mdss_dsn); in mptcp_send_infinite_mapping() 302 infin_opt.mdss_subflow_seqn = htonl(infin_opt.mdss_subflow_seqn); in mptcp_send_infinite_mapping() 584 htonl(MPTCP_DATAACK_LOW32(mp_tp->mpt_rcvnxt)); in mptcp_setup_opts() 587 dsn_ack_opt.mdss_subflow_seqn = htonl( in mptcp_setup_opts() 641 dsn_opt.mdss_dsn = htonl(dsn_opt.mdss_dsn); in mptcp_setup_opts() 642 dsn_opt.mdss_subflow_seqn = htonl(dsn_opt.mdss_subflow_seqn); in mptcp_setup_opts() 675 htonl(MPTCP_DATAACK_LOW32(mp_tp->mpt_rcvnxt)); in mptcp_setup_opts() 734 htonl(MPTCP_DATAACK_LOW32(mp_tp->mpt_rcvnxt)); in mptcp_setup_opts() 752 dss_ack_opt.mdss_dsn = htonl(dss_ack_opt.mdss_dsn); in mptcp_setup_opts() 754 htonl(dss_ack_opt.mdss_subflow_seqn); in mptcp_setup_opts() [all …]
|
| H A D | tcp_output.c | 1629 *((u_int32_t *)(void *)(opt + optlen)) = htonl( in tcp_output() 1656 *lp++ = htonl(TCPOPT_TSTAMP_HDR); in tcp_output() 1657 *lp++ = htonl(tcp_now + tp->t_ts_offset); in tcp_output() 1658 *lp = htonl(tp->ts_recent); in tcp_output() 1770 *lp++ = htonl(tp->t_dsack_lseq); in tcp_output() 1771 *lp++ = htonl(tp->t_dsack_rseq); in tcp_output() 1779 *lp++ = htonl(sack.start); in tcp_output() 1780 *lp++ = htonl(sack.end); in tcp_output() 2217 ip6->ip6_flow |= htonl(IPTOS_ECN_ECT0 << 20); in tcp_output() 2268 th->th_seq = htonl(tp->snd_nxt); in tcp_output() [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()
|
| /xnu-8020.101.4/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() 149 .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-8020.101.4/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-8020.101.4/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-8020.101.4/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-8020.101.4/bsd/nfs/ |
| H A D | krpc_subr.c | 186 sdata->prog = htonl(prog); in krpc_portmap() 187 sdata->vers = htonl(vers); in krpc_portmap() 188 sdata->proto = htonl(proto); in krpc_portmap() 363 *recmark = htonl(0x80000000 | (uint32_t)(pkthdr_len - 4)); in krpc_call() 370 call->rp_xid = htonl(xid); in krpc_call() 372 call->rp_rpcvers = htonl(2); in krpc_call() 373 call->rp_prog = htonl(prog); in krpc_call() 374 call->rp_vers = htonl(vers); in krpc_call() 375 call->rp_proc = htonl(func); in krpc_call() 507 if (reply->rp_direction != htonl(RPC_REPLY)) { in krpc_call() [all …]
|
| H A D | nfs_boot.c | 476 call->call_prog = htonl(BOOTPARAM_PROG); in bp_whoami() 477 call->call_vers = htonl(BOOTPARAM_VERS); in bp_whoami() 478 call->call_proc = htonl(BOOTPARAM_WHOAMI); in bp_whoami() 479 call->call_arglen = htonl(sizeof(struct bp_inaddr)); in bp_whoami() 482 call->call_ia.atype = htonl(1); in bp_whoami() 485 *lp++ = htonl(*p); p++; in bp_whoami() 486 *lp++ = htonl(*p); p++; in bp_whoami() 487 *lp++ = htonl(*p); p++; in bp_whoami() 488 *lp++ = htonl(*p); p++; in bp_whoami() 563 if (bia->atype != htonl(1)) { in bp_whoami() [all …]
|
| 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-8020.101.4/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()
|
| /xnu-8020.101.4/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-8020.101.4/bsd/net/ |
| H A D | ether_if_module.c | 446 if ((extProto1 & htonl(0xFFFFFF00)) == htonl(0xAAAA0300)) { in ether_demux() 451 extProto1 &= htonl(0x000000FF); in ether_demux() 454 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-8020.101.4/bsd/kern/ |
| H A D | ubc_subr.c | 3230 superblob->magic = htonl(CSMAGIC_EMBEDDED_SIGNATURE); in ubc_cs_reconstitute_code_signature() 3231 superblob->length = htonl((uint32_t)new_blob_size); in ubc_cs_reconstitute_code_signature() 3232 superblob->count = htonl(num_blobs); in ubc_cs_reconstitute_code_signature() 3238 superblob->index[blob_index].offset = htonl(blob_offset); in ubc_cs_reconstitute_code_signature() 3240 superblob->index[blob_index].type = htonl(CSSLOT_ALTERNATE_CODEDIRECTORIES); in ubc_cs_reconstitute_code_signature() 3242 superblob->index[blob_index].type = htonl(CSSLOT_CODEDIRECTORY); in ubc_cs_reconstitute_code_signature() 3260 superblob->index[blob_index].offset = htonl(blob_offset); in ubc_cs_reconstitute_code_signature() 3261 superblob->index[blob_index].type = htonl(CSSLOT_DER_ENTITLEMENTS); in ubc_cs_reconstitute_code_signature() 3270 superblob->index[blob_index].offset = htonl(blob_offset); in ubc_cs_reconstitute_code_signature() 3271 superblob->index[blob_index].type = htonl(CSSLOT_ENTITLEMENTS); in ubc_cs_reconstitute_code_signature() [all …]
|
| /xnu-8020.101.4/osfmk/kdp/ |
| H A D | kdp_udp.h | 65 #define htonl(x) OSSwapHostToBigInt32(x) macro
|
| /xnu-8020.101.4/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-8020.101.4/libkern/net/ |
| H A D | inet_aton.c | 140 addr->s_addr = htonl(val); in inet_aton()
|