/darwin-on-arm/xnu/osfmk/i386/ |
H A D | endian.h | 69 #if !defined(ntohl) 70 static __inline__ unsigned long ntohl(unsigned long); 73 ntohl(register unsigned long value) function 83 #define htonl ntohl 86 #define NTOHL(x) (x) = ntohl((unsigned long)x)
|
/darwin-on-arm/xnu/bsd/sys/ |
H A D | _endian.h | 104 __uint32_t ntohl(__uint32_t); 110 #define ntohl(x) ((__uint32_t)(x)) 129 #define ntohl(x) __DARWIN_OSSwapInt32(x) 133 #define NTOHL(x) (x) = ntohl((__uint32_t)x)
|
/darwin-on-arm/xnu/libsyscall/mach/servers/ |
H A D | key_defs.h | 81 (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]); \
|
/darwin-on-arm/xnu/bsd/netinet/ |
H A D | ip_ecn.c | 140 inner8 = (ntohl(*inner) >> 20) & 0xff; 157 outer8 = (ntohl(*outer) >> 20) & 0xff; 158 inner8 = (ntohl(*inner) >> 20) & 0xff;
|
H A D | dhcp.h | 98 #define dhcp_time_ntoh ntohl 100 #define dhcp_lease_ntoh ntohl
|
H A D | ip_mroute.c | 767 (u_int32_t)ntohl(vifcp->vifc_lcl_addr.s_addr), 769 (u_int32_t)ntohl(vifcp->vifc_rmt_addr.s_addr), 843 (u_int32_t)ntohl(mfccp->mfcc_origin.s_addr), 844 (u_int32_t)ntohl(mfccp->mfcc_mcastgrp.s_addr), 866 (u_int32_t)ntohl(mfccp->mfcc_origin.s_addr), 867 (u_int32_t)ntohl(mfccp->mfcc_mcastgrp.s_addr), 872 (u_int32_t)ntohl(mfccp->mfcc_origin.s_addr), 873 (u_int32_t)ntohl(mfccp->mfcc_mcastgrp.s_addr), 912 hash, (u_int32_t)ntohl(mfccp->mfcc_origin.s_addr), 913 (u_int32_t)ntohl(mfcc [all...] |
H A D | tcp_lro.c | 155 if (ntohl(seqnum) == flow->lr_seq) { 160 __func__, ntohl(seqnum), flow->lr_seq); 163 if (SEQ_GT(ntohl(seqnum), flow->lr_seq)) { 190 if (ntohl(seqnum) == (ntohl(lro_flow_list[*flow_id].lr_tcphdr->th_seq) + lro_flow_list[*flow_id].lr_len)) { 217 flow->lr_seq = ntohl(tcp_hdr->th_seq) + payload_len; 273 (TSTMP_GT(topt->to_tsval, ntohl(*(flow->lr_tsval))))) { 278 (TSTMP_GT(topt->to_tsecr, ntohl(*(flow->lr_tsecr))))) { 281 topt->to_tsecr - ntohl(*(flow->lr_tsecr))); 307 flow->lr_seq = ntohl(tcphd [all...] |
H A D | in_gif.c | 151 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; 290 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; 361 if (IN_MULTICAST(ntohl(ip.ip_src.s_addr))) 363 switch ((ntohl(ip.ip_src.s_addr) & 0xff000000) >> 24) {
|
H A D | tcp_debug.c | 214 seq = ntohl(seq); 215 ack = ntohl(ack);
|
/darwin-on-arm/xnu/bsd/nfs/ |
H A D | nfs_boot.c | 509 bpsin->sin_port = htons((short)ntohl(*lp++)); 513 if (msg_len < (ntohl(*lp) + sizeof(*lp))) 515 msg_len = ntohl(*lp++); 522 cn_len = ntohl(str->len); 537 dn_len = ntohl(str->len); 555 *p++ = ntohl(bia->addr[0]); 556 *p++ = ntohl(bia->addr[1]); 557 *p++ = ntohl(bia->addr[2]); 558 *p++ = ntohl(bia->addr[3]); 637 sn_len = ntohl(st [all...] |
H A D | xdr_subs.h | 76 * These use the MACHINE DEPENDENT routines ntohl, htonl 79 * To simplify the implementation, we use ntohl/htonl even on big-endian 85 #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]); \
|
H A D | krpc_subr.c | 423 len = ntohl(len) & ~0x80000000; 478 error = ntohl(reply->rp_u.rpu_errno); 493 if ((error = ntohl(reply->rp_u.rpu_ok.rp_rstatus)) != 0) { 551 len += ntohl(reply->rp_u.rpu_ok.rp_auth.rp_alen);
|
/darwin-on-arm/xnu/bsd/kern/ |
H A D | ubc_subr.c | 220 ntohl(embedded->magic) == CSMAGIC_EMBEDDED_SIGNATURE) { 224 limit = &embedded->index[ntohl(embedded->count)]; 230 if (ntohl(p->type) == CSSLOT_CODEDIRECTORY) { 234 cd = (const CS_CodeDirectory *)(base + ntohl(p->offset)); 248 cs_valid_range(cd, (const char *) cd + ntohl(cd->length), 250 cs_valid_range(cd, (const char *) cd + ntohl(cd->hashOffset), 253 ntohl(cd->hashOffset) + 254 (ntohl(cd->nCodeSlots) * SHA1_RESULTLEN), 257 ntohl(cd->magic) == CSMAGIC_CODEDIRECTORY) { 277 uint32_t nCodeSlots = ntohl(c [all...] |
H A D | kern_authorization.c | 1104 * Notes: We use ntohl() because it has a transitive property on Intel 1112 uint32_t invert_magic = ntohl(KAUTH_FILESEC_MAGIC); 1135 compare_acl_entrycount = ntohl(acl->acl_entrycount); 1146 fsec->fsec_magic = ntohl(fsec->fsec_magic); 1147 acl->acl_entrycount = ntohl(acl->acl_entrycount); 1149 acl->acl_flags = ntohl(acl->acl_flags); 1153 acl->acl_ace[i].ace_flags = ntohl(acl->acl_ace[i].ace_flags); 1154 acl->acl_ace[i].ace_rights = ntohl(acl->acl_ace[i].ace_rights);
|
/darwin-on-arm/xnu/bsd/netinet6/ |
H A D | ah_output.c | 208 (u_int32_t)ntohl(ip->ip_src.s_addr), 209 (u_int32_t)ntohl(ip->ip_dst.s_addr), 210 (u_int32_t)ntohl(sav->spi))); 219 "SPI=%u\n", (u_int32_t)ntohl(sav->spi))); 466 (u_int32_t)ntohl(sav->spi))); 475 "SPI=%u\n", (u_int32_t)ntohl(sav->spi)));
|
H A D | ah_input.c | 189 (u_int32_t)ntohl(spi))); 199 (u_int32_t)ntohl(spi))); 208 (u_int32_t)ntohl(spi))); 291 if (ipsec_chkreplay(ntohl(((struct newah *)ah)->ah_seq), sav)) 414 if (ipsec_updatereplay(ntohl(((struct newah *)ah)->ah_seq), sav)) { 670 (u_int32_t)ntohl(spi))); 680 (u_int32_t)ntohl(spi))); 689 (u_int32_t)ntohl(spi))); 744 if (ipsec_chkreplay(ntohl(((struct newah *)ah)->ah_seq), sav)) 850 if (ipsec_updatereplay(ntohl(((struc [all...] |
H A D | esp_output.c | 290 (u_int32_t)ntohl(ip->ip_src.s_addr), 291 (u_int32_t)ntohl(ip->ip_dst.s_addr), 292 (u_int32_t)ntohl(sav->spi))); 301 (u_int32_t)ntohl(sav->spi))); 316 "SPI=%u\n", (u_int32_t)ntohl(sav->spi)));
|
H A D | esp_input.c | 227 (u_int32_t)ntohl(spi))); 237 (u_int32_t)ntohl(spi))); 245 (u_int32_t)ntohl(spi))); 259 seq = ntohl(((struct newesp *)esp)->esp_seq); 777 (u_int32_t)ntohl(spi))); 787 (u_int32_t)ntohl(spi))); 795 (u_int32_t)ntohl(spi))); 809 seq = ntohl(((struct newesp *)esp)->esp_seq);
|
H A D | in6_gif.c | 158 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; 279 otos8 = (ntohl(otos) >> 20) & 0xff;
|
/darwin-on-arm/xnu/bsd/net/classq/ |
H A D | classq_util.c | 129 flowlabel = ntohl(ip6->ip6_flow); 194 flowlabel = ntohl(ip6->ip6_flow); 282 flowlabel = ntohl(ip6->ip6_flow);
|
/darwin-on-arm/xnu/osfmk/kdp/ |
H A D | kdp_udp.h | 135 #define ntohl(x) OSSwapBigToHostInt32(x) macro
|
/darwin-on-arm/xnu/bsd/net/ |
H A D | pf_norm.c | 324 ntohl(frag->fr_id6), frag)); 345 ntohl(frag->fr_id6), frag)); 1273 DPFPRINTF(("frag6cache[%d]: new %d-%d\n", ntohl(fh->ip6f_ident), 1299 ntohl(fh->ip6f_ident), frp->fr_off, frp->fr_end, 1306 ntohl(fh->ip6f_ident), frp->fr_off, frp->fr_end, 1318 ntohl(fh->ip6f_ident), precut, frp->fr_off, 1366 ntohl(fh->ip6f_ident), -precut, frp->fr_off, 1388 ntohl(fh->ip6f_ident), off, fr_max, fra->fr_off, 1395 ntohl(fh->ip6f_ident), aftercut, off, fr_max, 1422 ntohl(f [all...] |
H A D | if_stf.c | 558 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; 654 if (IN_MULTICAST(ntohl(in->s_addr))) 656 switch ((ntohl(in->s_addr) & 0xff000000) >> 24) { 701 (u_int32_t)ntohl(sin.sin_addr.s_addr)); 799 itos = (ntohl(ip6.ip6_flow) >> 20) & 0xff;
|
H A D | bpf_filter.c | 85 #define EXTRACT_LONG(p) (ntohl(*(u_int32_t *)(void *)p)) 263 A = ntohl(*(int32_t *)(void *)(p + k)); 332 A = ntohl(*(int32_t *)(void *)(p + k));
|
/darwin-on-arm/xnu/bsd/netat/ |
H A D | appletalk.h | 87 #define UAL_ASSIGN_NTOH(x,l) *(unsigned long *) &(x[0]) = ntohl((unsigned long) (l)) 89 #define UAL_VALUE_NTOH(x) ntohl((*(unsigned long *) &(x[0])))
|