Home
last modified time | relevance | path

Searched refs:ntohl (Results 1 – 25 of 92) sorted by relevance

1234

/xnu-8020.121.3/bsd/netinet6/
H A Desp_chachapoly.c100 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 Desp_input.c197 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 Dah_input.c166 (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 Dah_output.c204 (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 Desp_output.c295 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()
/xnu-8020.121.3/bsd/kern/
H A Dubc_subr.c266 uint32_t nCodeSlots = ntohl(cd->nCodeSlots); in hashes()
270 if ((ntohl(cd->version) >= CS_SUPPORTSSCATTER) && (ntohl(cd->scatterOffset))) { in hashes()
273 ((const char*)cd + ntohl(cd->scatterOffset)); in hashes()
277 if ((const char*)scatter > (const char*)cd + ntohl(cd->length)) { in hashes()
284 scount = ntohl(scatter->count); in hashes()
285 uint32_t new_base = ntohl(scatter->base); in hashes()
311 base = (const unsigned char *)cd + ntohl(cd->hashOffset) + in hashes()
332 base = (const unsigned char *)cd + ntohl(cd->hashOffset); in hashes()
372 if (ntohl(cd->magic) != CSMAGIC_CODEDIRECTORY) { in cs_validate_codedirectory()
387 if (length < ntohl(cd->hashOffset)) { in cs_validate_codedirectory()
[all …]
H A Dkern_authorization.c1126 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-8020.121.3/osfmk/i386/
H A Dendian.h67 #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-8020.121.3/bsd/netinet/
H A Dip_ecn.c135 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 Ddhcp.h97 #define dhcp_time_ntoh ntohl
99 #define dhcp_lease_ntoh ntohl
H A Din_gif.c157 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 Dtcp_sack.c458 sack.start = ntohl(sack.start); in tcp_sack_doack()
459 sack.end = ntohl(sack.end); in tcp_sack_doack()
888 first_sack.start = ntohl(first_sack.start); in tcp_sack_process_dsack()
889 first_sack.end = ntohl(first_sack.end); in tcp_sack_process_dsack()
894 second_sack.start = ntohl(second_sack.start); in tcp_sack_process_dsack()
895 second_sack.end = ntohl(second_sack.end); in tcp_sack_process_dsack()
H A Dtcp_debug.c200 seq = ntohl(seq);
201 ack = ntohl(ack);
/xnu-8020.121.3/bsd/sys/
H A D_endian.h104 __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-8020.121.3/libsyscall/mach/servers/
H A Dkey_defs.h81 (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-8020.121.3/bsd/nfs/
H A Dnfs_boot.c509 bpsin->sin_port = htons((short)ntohl(*lp++)); in bp_whoami()
513 if (os_add_overflow((size_t) ntohl(*lp), sizeof(*lp), &encapsulated_size) in bp_whoami()
517 msg_len = ntohl(*lp++); in bp_whoami()
567 *p++ = ntohl(bia->addr[0]) & 0xff; in bp_whoami()
568 *p++ = ntohl(bia->addr[1]) & 0xff; in bp_whoami()
569 *p++ = ntohl(bia->addr[2]) & 0xff; in bp_whoami()
570 *p++ = ntohl(bia->addr[3]) & 0xff; in bp_whoami()
680 *q++ = ntohl(bia->addr[0]) & 0xff; in bp_getfile()
681 *q++ = ntohl(bia->addr[1]) & 0xff; in bp_getfile()
682 *q++ = ntohl(bia->addr[2]) & 0xff; in bp_getfile()
[all …]
H A Dkrpc_subr.c517 error = ntohl(reply->rp_u.rpu_errno); in krpc_call()
535 error = ntohl(reply->rp_u.rpu_ok.rp_rstatus); in krpc_call()
599 len += ntohl(reply->rp_u.rpu_ok.rp_auth.rp_alen); in krpc_call()
H A Dxdr_subs.h85 #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-8020.121.3/bsd/net/
H A Dnat464_utils.c128 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 Dif_stf.c551 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 Dpf_norm.c329 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-8020.121.3/bsd/net/classq/
H A Dclassq_util.c130 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-8020.121.3/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_track.c105 src->fse_seqlo = ntohl(pkt->pkt_flow_tcp_seq); in flow_track_tcp_init()
258 ntohl(pkt->pkt_flow_tcp_seq), ntohl(pkt->pkt_flow_tcp_ack), in flow_track_tcp()
284 orig_seq = seq = ntohl(pkt->pkt_flow_tcp_seq); in flow_track_tcp()
286 ack = ntohl(pkt->pkt_flow_tcp_ack); in flow_track_tcp()
302 ack = ntohl(pkt->pkt_flow_tcp_ack); in flow_track_tcp()
/xnu-8020.121.3/tests/
H A Dcodesigntests.c36 bufferlen = ntohl(len); in get_blob()
55 bufferlen2 = ntohl(len); in get_blob()
/xnu-8020.121.3/osfmk/kdp/
H A Dkdp_udp.h63 #define ntohl(x) OSSwapBigToHostInt32(x) macro

1234