Home
last modified time | relevance | path

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

1234567

/external/tcpdump/
Dextract.h57 ((u_int32_t)ntohl(((const unaligned_u_int32_t *)(p))->val))
59 ((u_int64_t)(((u_int64_t)ntohl(((const unaligned_u_int32_t *)(p) + 0)->val)) << 32 | \
60 ((u_int64_t)ntohl(((const unaligned_u_int32_t *)(p) + 1)->val)) << 0))
94 ((u_int32_t)ntohl(*(const u_int32_t *)(p)))
96 ((u_int64_t)(((u_int64_t)ntohl(*((const u_int32_t *)(p) + 0))) << 32 | \
97 ((u_int64_t)ntohl(*((const u_int32_t *)(p) + 1))) << 0))
Dprint-dhcp6.c408 ntohl(ia_addr.dh6opt_ia_addr_pltime); in dhcp6opt_print()
410 ntohl(ia_addr.dh6opt_ia_addr_vltime); in dhcp6opt_print()
607 ia.dh6opt_ia_iaid = ntohl(ia.dh6opt_ia_iaid); in dhcp6opt_print()
608 ia.dh6opt_ia_t1 = ntohl(ia.dh6opt_ia_t1); in dhcp6opt_print()
609 ia.dh6opt_ia_t2 = ntohl(ia.dh6opt_ia_t2); in dhcp6opt_print()
631 ntohl(ia_prefix.dh6opt_ia_prefix_pltime); in dhcp6opt_print()
633 ntohl(ia_prefix.dh6opt_ia_prefix_vltime); in dhcp6opt_print()
651 val32 = ntohl(val32); in dhcp6opt_print()
Dtcpdump-stdinc.h147 #undef ntohl
155 #define ntohl(x) __ntohl(x) macro
Dprint-pflog.c102 rulenr = ntohl(hdr->rulenr); in pflog_print()
103 subrulenr = ntohl(hdr->subrulenr); in pflog_print()
/external/chromium/net/spdy/
Dspdy_protocol.h315 uint32 id() const { return (ntohl(id_) & kSettingsIdMask); } in id()
371 return ntohl(frame_->flags_length_.length_) & kLengthMask; in length()
407 return ntohl(frame_->data_.stream_id_) & kStreamIdMask; in stream_id()
503 return ntohl(block()->stream_id_) & kStreamIdMask; in stream_id()
511 return ntohl(block()->associated_stream_id_) & kStreamIdMask; in associated_stream_id()
553 return ntohl(block()->stream_id_) & kStreamIdMask; in stream_id()
590 return ntohl(block()->stream_id_) & kStreamIdMask; in stream_id()
599 static_cast<SpdyStatusCodes>(ntohl(block()->status_)); in status()
630 return ntohl(block()->num_entries_); in num_entries()
675 return ntohl(block()->unique_id_); in unique_id()
[all …]
/external/qemu/slirp/
Dbootp.c67 paddr->s_addr = htonl(ntohl(special_addr.s_addr) | (i + START_ADDR)); in get_new_addr()
74 uint32_t req_addr = ntohl(paddr->s_addr); in request_addr()
75 uint32_t spec_addr = ntohl(special_addr.s_addr); in request_addr()
102 paddr->s_addr = htonl(ntohl(special_addr.s_addr) | (i + START_ADDR)); in find_addr()
168 dprintf(" req_addr=%08x\n", ntohl(preq_addr->s_addr)); in bootp_reply()
221 saddr.sin_addr.s_addr = htonl(ntohl(special_addr.s_addr) | CTL_ALIAS); in bootp_reply()
242 ntohl(daddr.sin_addr.s_addr)); in bootp_reply()
278 dns_addr.s_addr = htonl(ntohl(special_addr.s_addr) | CTL_DNS); in bootp_reply()
299 dprintf("nak'ed addr=%08x\n", ntohl(preq_addr->s_addr)); in bootp_reply()
/external/grub/stage2/
Dimgact_aout.h46 #define ntohl(x) ((x << 24) | ((x & 0xFF00) << 8) \ macro
48 #define htonl(x) ntohl(x)
64 (ntohl((ex).a_midmag) & 0xffff)
66 ((ntohl((ex).a_midmag) >> 16) & 0x03ff)
68 ((ntohl((ex).a_midmag) >> 26) & 0x3f)
/external/webkit/Source/WebCore/platform/graphics/
DWOFFFileFormat.cpp42 #define ntohl(x) std_ntohl(x) macro
50 #define ntohl(x) ((uint32_t)(x)) macro
55 #define ntohl(x) ((uint32_t)((((uint32_t)(x) & 0xffff0000) >> 16) | (((uint32_t)(x) & 0xffff) << 16… macro
56 #define htonl(x) ntohl(x)
60 #define ntohl(x) ((uint32_t)((((uint32_t)(x) & 0xff000000) >> 24) | (((uint32_t)(x) & 0x00ff0000) >… macro
62 #define htonl(x) ntohl(x)
74 value = ntohl(*reinterpret_cast<const uint32_t*>(buffer->data() + offset)); in readUInt32()
/external/e2fsprogs/misc/
Ddumpe2fs.c350 (unsigned int)ntohl(jsb->s_maxlen), in print_inline_journal_information()
351 (unsigned int)ntohl(jsb->s_sequence), in print_inline_journal_information()
352 (unsigned int)ntohl(jsb->s_start)); in print_inline_journal_information()
370 if ((jsb->s_header.h_magic != (unsigned) ntohl(JFS_MAGIC_NUMBER)) || in print_journal_information()
372 (unsigned) ntohl(JFS_SUPERBLOCK_V2))) { in print_journal_information()
384 (unsigned int)ntohl(jsb->s_blocksize), (unsigned int)ntohl(jsb->s_maxlen), in print_journal_information()
385 (unsigned int)ntohl(jsb->s_first), (unsigned int)ntohl(jsb->s_sequence), in print_journal_information()
386 (unsigned int)ntohl(jsb->s_start), (unsigned int)ntohl(jsb->s_nr_users)); in print_journal_information()
388 for (i=0; i < ntohl(jsb->s_nr_users); i++) { in print_journal_information()
/external/iproute2/tc/
Df_u32.c830 switch (ntohl(key->mask)) { in print_ipv4()
832 fprintf(f, "\n match IP ihl %u", ntohl(key->val) >> 24); in print_ipv4()
835 fprintf(f, "\n match IP dsfield %#x", ntohl(key->val) >> 16); in print_ipv4()
840 if (ntohl(key->mask) == 0x00ff0000) { in print_ipv4()
841 fprintf(f, "\n match IP protocol %d", ntohl(key->val) >> 16); in print_ipv4()
860 switch (ntohl(key->mask)) { in print_ipv4()
863 ntohl(key->val) & 0xffff); in print_ipv4()
867 ntohl(key->val) >> 16); in print_ipv4()
871 ntohl(key->val) & 0xffff, in print_ipv4()
872 ntohl(key->val) >> 16); in print_ipv4()
[all …]
/external/kernel-headers/original/linux/byteorder/
Dgeneric.h145 #undef ntohl
154 extern __u32 ntohl(__be32);
167 #define ntohl(x) ___ntohl(x) macro
/external/valgrind/main/coregrind/
Dfixup_macho_loadcmds.c178 if (ntohl(fh_be->magic) == FAT_MAGIC) in is_macho_object_file()
259 fh.magic = ntohl(fh_be->magic); in map_image_aboard()
260 fh.nfat_arch = ntohl(fh_be->nfat_arch); in map_image_aboard()
281 arch.cputype = ntohl(arch_be->cputype); in map_image_aboard()
282 arch.cpusubtype = ntohl(arch_be->cpusubtype); in map_image_aboard()
283 arch.offset = ntohl(arch_be->offset); in map_image_aboard()
284 arch.size = ntohl(arch_be->size); in map_image_aboard()
Dlauncher-darwin.c132 uint32_t nfat_arch = ntohl(fh->nfat_arch); in fat_has_cputype()
135 if (ntohl(fa[i].cputype) == cputype) return 1; in fat_has_cputype()
171 if (ntohl(fh->magic) == FAT_MAGIC) { in select_arch()
172 uint32_t nfat_arch = ntohl(fh->nfat_arch); in select_arch()
177 return name_for_cputype(ntohl(fa->cputype)); in select_arch()
/external/bluetooth/hcidump/src/
Dhcidump.c310 dp->flags = ntohl(frm.in & 0x01); in process_frames()
316 dp->flags |= ntohl(0x02); in process_frames()
387 lseek(fd, ntohl(ph.len) - 9, SEEK_CUR); in read_dump()
391 frm.data_len = ntohl(ph.len) - 8; in read_dump()
396 if (ntohl(dp.flags) & 0x02) { in read_dump()
397 if (ntohl(dp.flags) & 0x01) in read_dump()
406 frm.data_len = ntohl(dp.len) + 1; in read_dump()
411 frm.data_len = ntohl(dp.len); in read_dump()
435 frm.in = ntohl(dp.flags) & 0x01; in read_dump()
480 btsnoop_version = ntohl(hdr->version); in open_file()
[all …]
/external/srtp/crypto/include/
Dcrypto_math.h154 z->v32[3] = ntohl((uint32_t) tmp); \
158 z->v32[2] = ntohl((uint32_t) tmp); \
162 z->v32[1] = ntohl((uint32_t) tmp); \
166 z->v32[0] = ntohl((uint32_t) tmp); \
Ddatatypes.h298 z->v32[3] = ntohl((uint32_t) tmp); \
302 z->v32[2] = ntohl((uint32_t) tmp); \
306 z->v32[1] = ntohl((uint32_t) tmp); \
310 z->v32[0] = ntohl((uint32_t) tmp); \
409 # define be32_to_cpu(x) ntohl((x))
/external/ppp/pppd/plugins/radius/
Dip_util.c35 return ntohl(inet_addr (host)); in rc_get_ipaddr()
42 return ntohl((*(UINT4 *) hp->h_addr)); in rc_get_ipaddr()
/external/qemu/slirp-android/
Dudp.c134 if (slirp_should_drop(ntohl(ip->ip_dst.addr), ntohs(uh->uh_dport.port), in udp_input()
138 ntohl(ip->ip_src.addr), in udp_input()
140 ntohl(ip->ip_dst.addr), in udp_input()
149 ntohl(ip->ip_src.addr), in udp_input()
151 ntohl(ip->ip_dst.addr), in udp_input()
/external/valgrind/main/coregrind/m_ume/
Dmacho.c657 fh.nfat_arch = VG_(ntohl)(fh.nfat_arch); in load_fat_file()
673 arch.cputype = VG_(ntohl)(arch.cputype); in load_fat_file()
674 arch.cpusubtype = VG_(ntohl)(arch.cpusubtype); in load_fat_file()
675 arch.offset = VG_(ntohl)(arch.offset); in load_fat_file()
676 arch.size = VG_(ntohl)(arch.size); in load_fat_file()
677 arch.align = VG_(ntohl)(arch.align); in load_fat_file()
742 (*magic == MAGIC || *magic == VG_(ntohl)(FAT_MAGIC))) in VG_()
/external/dnsmasq/src/
Ddhcp.c436 unsigned int start, end, addr = ntohl(taddr.s_addr); in address_available()
445 start = ntohl(tmp->start.s_addr); in address_available()
446 end = ntohl(tmp->end.s_addr); in address_available()
557 htonl(ntohl(c->start.s_addr) + in address_allocate()
558 ((j + c->addr_epoch) % (1 + ntohl(c->end.s_addr) - ntohl(c->start.s_addr)))); in address_allocate()
574 (!IN_CLASSC(ntohl(addr.s_addr)) || in address_allocate()
575 ((ntohl(addr.s_addr) & 0xff) != 0xff && ((ntohl(addr.s_addr) & 0xff) != 0x0)))) in address_allocate()
625 addr.s_addr = htonl(ntohl(addr.s_addr) + 1); in address_allocate()
627 if (addr.s_addr == htonl(ntohl(c->end.s_addr) + 1)) in address_allocate()
Drfc2131.c353 ntohl(mess->xid), daemon->namebuff, inet_ntoa(context_tmp->netmask)); in dhcp_reply()
356 ntohl(mess->xid), daemon->namebuff, inet_ntoa(context_tmp->end)); in dhcp_reply()
558 …my_syslog(MS_DHCP | LOG_INFO, _("%u client provides name: %s"), ntohl(mess->xid), client_hostname); in dhcp_reply()
696 my_syslog(MS_DHCP | LOG_INFO, _("%u Vendor class: %s"), ntohl(mess->xid), daemon->namebuff); in dhcp_reply()
698 my_syslog(MS_DHCP | LOG_INFO, _("%u User class: %s"), ntohl(mess->xid), daemon->namebuff); in dhcp_reply()
956 …option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, ntohl(server_id(context, override, fallb… in dhcp_reply()
1125 …option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, ntohl(server_id(context, override, fallb… in dhcp_reply()
1225 …option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, ntohl(server_id(context, override, fallb… in dhcp_reply()
1280 …option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, ntohl(server_id(context, override, fallb… in dhcp_reply()
1399 ntohl(xid), in log_packet()
[all …]
/external/dhcpcd/
Dshowlease.c283 *i = ntohl(a); in get_option_uint32()
297 return ntohl(IN_CLASSA_NET); in get_netmask()
299 return ntohl(IN_CLASSB_NET); in get_netmask()
301 return ntohl(IN_CLASSC_NET); in get_netmask()
/external/e2fsprogs/e2fsck/
Djournal.c516 switch (ntohl(jsb->s_header.h_blocktype)) { in e2fsck_journal_load()
528 if (ntohl(jsb->s_nr_users) > 1 && in e2fsck_journal_load()
531 if (ntohl(jsb->s_nr_users) > 1) { in e2fsck_journal_load()
569 if (ntohl(jsb->s_maxlen) < journal->j_maxlen) in e2fsck_journal_load()
570 journal->j_maxlen = ntohl(jsb->s_maxlen); in e2fsck_journal_load()
571 else if (ntohl(jsb->s_maxlen) > journal->j_maxlen) { in e2fsck_journal_load()
578 journal->j_tail_sequence = ntohl(jsb->s_sequence); in e2fsck_journal_load()
580 journal->j_tail = ntohl(jsb->s_start); in e2fsck_journal_load()
581 journal->j_first = ntohl(jsb->s_first); in e2fsck_journal_load()
582 journal->j_last = ntohl(jsb->s_maxlen); in e2fsck_journal_load()
/external/libmtp/m4/
Dbyteorder.m47 dnl ntohl variety as well as the extended types included in OpenBSD and
8 dnl NetBSD such as le32toh are defined. If possible, the standard ntohl
72 AC_HAVE_SYMBOL(ntohl,arpa/inet.h,
74 /* ntohl and relatives live here */
79 [AC_HAVE_SYMBOL(ntohl,netinet/in.h,
81 /* ntohl and relatives live here */
179 #define swap32(x) ntohl(x)
228 # define be32toh(x) ntohl(x)
/external/bluetooth/hcidump/parser/
Dparser.h180 return ntohl(bt_get_unaligned(u32_ptr)); in get_u32()
189 tmp = ntohl(u64 & 0xffffffff); in get_u64()
190 u64 = (tmp << 32) | ntohl(u64 >> 32); in get_u64()

1234567