Searched refs:ntohl (Results 1 - 25 of 67) sorted by relevance

123

/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/
H A Dxdr_subs.h78 * These use the MACHINE DEPENDENT routines ntohl, htonl
81 * To simplify the implementation, we use ntohl/htonl even on big-endian
87 #define fxdr_unsigned(t, v) ((t)ntohl((long)(v)))
91 ((long *)(t))[_QUAD_HIGHWORD] = ntohl(((long *)(f))[0]); \
92 ((long *)(t))[_QUAD_LOWWORD] = ntohl(((long *)(f))[1]); \
H A Dnfs_boot.c501 bpsin->sin_port = htons((short)ntohl(*lp++));
505 if (msg_len < (ntohl(*lp) + sizeof(*lp)))
507 msg_len = ntohl(*lp++);
514 cn_len = ntohl(str->len);
529 dn_len = ntohl(str->len);
547 *p++ = ntohl(bia->addr[0]);
548 *p++ = ntohl(bia->addr[1]);
549 *p++ = ntohl(bia->addr[2]);
550 *p++ = ntohl(bia->addr[3]);
629 sn_len = ntohl(st
[all...]
H A Dkrpc_subr.c424 len = ntohl(len) & ~0x80000000;
479 error = ntohl(reply->rp_u.rpu_errno);
494 if ((error = ntohl(reply->rp_u.rpu_ok.rp_rstatus)) != 0) {
552 len += ntohl(reply->rp_u.rpu_ok.rp_auth.rp_alen);
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/
H A Dendian.h69 #if !defined(ntohl)
70 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)
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A D_endian.h104 __uint32_t ntohl(__uint32_t);
110 #define ntohl(x) (x)
129 #define ntohl(x) __DARWIN_OSSwapInt32(x)
133 #define NTOHL(x) (x) = ntohl((__uint32_t)x)
/macosx-10.5.8/xnu-1228.15.4/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]); \
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/
H A Dendian.h55 #define ntohl(x) (x) macro
84 unsigned long ntohl(), htonl();
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dip_ecn.c140 inner8 = (ntohl(*inner) >> 20) & 0xff;
157 outer8 = (ntohl(*outer) >> 20) & 0xff;
158 inner8 = (ntohl(*inner) >> 20) & 0xff;
H A Ddhcp.h98 #define dhcp_time_ntoh ntohl
100 #define dhcp_lease_ntoh ntohl
H A Din_gif.c153 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
289 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
360 if (IN_MULTICAST(ntohl(ip.ip_src.s_addr)))
362 switch ((ntohl(ip.ip_src.s_addr) & 0xff000000) >> 24) {
398 (u_int32_t)ntohl(sin.sin_addr.s_addr));
H A Dip_mroute.c78 #define NTOHL(d) ((d) = ntohl((d)))
777 (u_long)ntohl(vifcp->vifc_lcl_addr.s_addr),
779 (u_long)ntohl(vifcp->vifc_rmt_addr.s_addr),
853 (u_long)ntohl(mfccp->mfcc_origin.s_addr),
854 (u_long)ntohl(mfccp->mfcc_mcastgrp.s_addr),
876 (u_long)ntohl(mfccp->mfcc_origin.s_addr),
877 (u_long)ntohl(mfccp->mfcc_mcastgrp.s_addr),
882 (u_long)ntohl(mfccp->mfcc_origin.s_addr),
883 (u_long)ntohl(mfccp->mfcc_mcastgrp.s_addr),
922 hash, (u_long)ntohl(mfcc
[all...]
H A Digmp.c295 !IN_MULTICAST(ntohl(igmp->igmp_group.s_addr))) {
349 if (!IN_MULTICAST(ntohl(igmp->igmp_group.s_addr))) {
364 if ((ntohl(ip->ip_src.s_addr) & IN_CLASSA_NET) == 0)
H A Dtcp_debug.c214 seq = ntohl(seq);
215 ack = ntohl(ack);
H A Dip_output.c131 #define print_ip(a) printf("%ld.%ld.%ld.%ld",(ntohl(a.s_addr)>>24)&0xFF,\
132 (ntohl(a.s_addr)>>16)&0xFF,\
133 (ntohl(a.s_addr)>>8)&0xFF,\
134 (ntohl(a.s_addr))&0xFF);
480 } else if (IN_MULTICAST(ntohl(pkt_dst.s_addr)) &&
551 !(IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr))));
612 if (IN_MULTICAST(ntohl(pkt_dst.s_addr))) {
816 if (IN_LINKLOCAL(ntohl(ip->ip_src.s_addr)) || IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr))) {
1324 ((ntohl(i
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ufs/
H A Dufs_attrlist.c134 if (ntohl(ul_p->ul_version) != UFS_LABEL_VERSION) {
137 "(should be %d)\n", ntohl(ul_p->ul_version),
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dubc_subr.c197 ntohl(embedded->magic) == CSMAGIC_EMBEDDED_SIGNATURE) {
201 limit = &embedded->index[ntohl(embedded->count)];
207 if (ntohl(p->type) == CSSLOT_CODEDIRECTORY) {
211 cd = (const CS_CodeDirectory *)(base + ntohl(p->offset));
224 cs_valid_range(cd, (const char *) cd + ntohl(cd->length),
226 cs_valid_range(cd, (const char *) cd + ntohl(cd->hashOffset),
229 ntohl(cd->hashOffset) +
230 (ntohl(cd->nCodeSlots) * SHA1_RESULTLEN),
233 ntohl(cd->magic) == CSMAGIC_CODEDIRECTORY) {
257 base = (const unsigned char *)cd + ntohl(c
[all...]
H A Dkern_authorization.c1070 * Notes: We use ntohl() because it has a transitive property on Intel
1078 uint32_t invert_magic = ntohl(KAUTH_FILESEC_MAGIC);
1101 compare_acl_entrycount = ntohl(acl->acl_entrycount);
1112 fsec->fsec_magic = ntohl(fsec->fsec_magic);
1113 acl->acl_entrycount = ntohl(acl->acl_entrycount);
1115 acl->acl_flags = ntohl(acl->acl_flags);
1119 acl->acl_ace[i].ace_flags = ntohl(acl->acl_ace[i].ace_flags);
1120 acl->acl_ace[i].ace_rights = ntohl(acl->acl_ace[i].ace_rights);
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Dah_output.c180 (u_int32_t)ntohl(ip->ip_src.s_addr),
181 (u_int32_t)ntohl(ip->ip_dst.s_addr),
182 (u_int32_t)ntohl(sav->spi)));
191 "SPI=%u\n", (u_int32_t)ntohl(sav->spi)));
438 (u_int32_t)ntohl(sav->spi)));
447 "SPI=%u\n", (u_int32_t)ntohl(sav->spi)));
H A Dah_input.c153 (u_int32_t)ntohl(spi)));
163 (u_int32_t)ntohl(spi)));
172 (u_int32_t)ntohl(spi)));
253 if (ipsec_chkreplay(ntohl(((struct newah *)ah)->ah_seq), sav))
376 if (ipsec_updatereplay(ntohl(((struct newah *)ah)->ah_seq), sav)) {
605 (u_int32_t)ntohl(spi)));
615 (u_int32_t)ntohl(spi)));
624 (u_int32_t)ntohl(spi)));
679 if (ipsec_chkreplay(ntohl(((struct newah *)ah)->ah_seq), sav))
785 if (ipsec_updatereplay(ntohl(((struc
[all...]
H A Desp_input.c165 (u_int32_t)ntohl(spi)));
175 (u_int32_t)ntohl(spi)));
183 (u_int32_t)ntohl(spi)));
208 if (ipsec_chkreplay(ntohl(((struct newesp *)esp)->esp_seq), sav))
273 if (ipsec_updatereplay(ntohl(((struct newesp *)esp)->esp_seq), sav)) {
610 (u_int32_t)ntohl(spi)));
620 (u_int32_t)ntohl(spi)));
628 (u_int32_t)ntohl(spi)));
653 if (ipsec_chkreplay(ntohl(((struct newesp *)esp)->esp_seq), sav))
715 if (ipsec_updatereplay(ntohl(((struc
[all...]
H A Din6_gif.c132 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
173 ip6->ip6_flow &= ~ntohl(0xff00000);
257 otos8 = (ntohl(otos) >> 20) & 0xff;
H A Desp_output.c262 (u_int32_t)ntohl(ip->ip_src.s_addr),
263 (u_int32_t)ntohl(ip->ip_dst.s_addr),
264 (u_int32_t)ntohl(sav->spi)));
273 (u_int32_t)ntohl(sav->spi)));
288 "SPI=%u\n", (u_int32_t)ntohl(sav->spi)));
/macosx-10.5.8/xnu-1228.15.4/osfmk/kdp/
H A Dkdp_udp.h134 #define ntohl(x) OSSwapBigToHostInt32(x) macro
/macosx-10.5.8/xnu-1228.15.4/bsd/netat/
H A Dappletalk.h87 #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])))
/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Dif_stf.c492 tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
587 if (IN_MULTICAST(ntohl(in->s_addr)))
589 switch ((ntohl(in->s_addr) & 0xff000000) >> 24) {
627 (u_int32_t)ntohl(sin.sin_addr.s_addr));
722 itos = (ntohl(ip6.ip6_flow) >> 20) & 0xff;

Completed in 98 milliseconds

123