Home
last modified time | relevance | path

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

1234567

/external/libnl/lib/netfilter/
Dlog_msg.c96 nfnl_log_msg_set_mark(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
110 nfnl_log_msg_set_indev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
114 nfnl_log_msg_set_outdev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
118 nfnl_log_msg_set_physindev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
122 nfnl_log_msg_set_physoutdev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
147 nfnl_log_msg_set_uid(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
151 nfnl_log_msg_set_gid(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
155 nfnl_log_msg_set_seq(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
159 nfnl_log_msg_set_seq_global(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse()
Dqueue_msg.c88 nfnl_queue_msg_set_packetid(msg, ntohl(hdr->packet_id)); in nfnlmsg_queue_msg_parse()
96 nfnl_queue_msg_set_mark(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse()
110 nfnl_queue_msg_set_indev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse()
114 nfnl_queue_msg_set_outdev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse()
118 nfnl_queue_msg_set_physindev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse()
122 nfnl_queue_msg_set_physoutdev(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_queue_msg_parse()
183 ntohl(nfnl_queue_msg_get_mark(msg))) < 0) in nfnl_queue_msg_build_verdict()
Dct.c264 ntohl(nla_get_u32(tb[CTA_COUNTERS32_PACKETS]))); in ct_parse_counters()
270 ntohl(nla_get_u32(tb[CTA_COUNTERS32_BYTES]))); in ct_parse_counters()
327 nfnl_ct_set_status(ct, ntohl(nla_get_u32(tb[CTA_STATUS]))); in nfnlmsg_ct_parse()
329 nfnl_ct_set_timeout(ct, ntohl(nla_get_u32(tb[CTA_TIMEOUT]))); in nfnlmsg_ct_parse()
331 nfnl_ct_set_mark(ct, ntohl(nla_get_u32(tb[CTA_MARK]))); in nfnlmsg_ct_parse()
333 nfnl_ct_set_use(ct, ntohl(nla_get_u32(tb[CTA_USE]))); in nfnlmsg_ct_parse()
335 nfnl_ct_set_id(ct, ntohl(nla_get_u32(tb[CTA_ID]))); in nfnlmsg_ct_parse()
/external/tcpdump/
Dextract.h100 return ((uint32_t)ntohl(((const unaligned_uint32_t *)(p))->val)); in EXTRACT_32BITS()
106 return ((uint64_t)(((uint64_t)ntohl(((const unaligned_uint32_t *)(p) + 0)->val)) << 32 | \ in EXTRACT_64BITS()
107 ((uint64_t)ntohl(((const unaligned_uint32_t *)(p) + 1)->val)) << 0)); in EXTRACT_64BITS()
150 return ((uint32_t)ntohl(*(const uint32_t *)(p))); in EXTRACT_32BITS()
156 return ((uint64_t)(((uint64_t)ntohl(*((const uint32_t *)(p) + 0))) << 32 | \ in EXTRACT_64BITS()
157 ((uint64_t)ntohl(*((const uint32_t *)(p) + 1))) << 0)); in EXTRACT_64BITS()
/external/e2fsprogs/misc/
Ddumpe2fs.c393 (unsigned int)ntohl(jsb->s_maxlen), in print_inline_journal_information()
394 (unsigned int)ntohl(jsb->s_sequence), in print_inline_journal_information()
395 (unsigned int)ntohl(jsb->s_start)); in print_inline_journal_information()
398 (int) ntohl(jsb->s_errno)); in print_inline_journal_information()
418 if ((jsb->s_header.h_magic != (unsigned) ntohl(JFS_MAGIC_NUMBER)) || in print_journal_information()
420 (unsigned) ntohl(JFS_SUPERBLOCK_V2))) { in print_journal_information()
432 (unsigned int)ntohl(jsb->s_blocksize), (unsigned int)ntohl(jsb->s_maxlen), in print_journal_information()
433 (unsigned int)ntohl(jsb->s_first), (unsigned int)ntohl(jsb->s_sequence), in print_journal_information()
434 (unsigned int)ntohl(jsb->s_start), (unsigned int)ntohl(jsb->s_nr_users)); in print_journal_information()
436 for (i=0; i < ntohl(jsb->s_nr_users); i++) { in print_journal_information()
/external/libnfc-nci/src/gki/common/
Dgki_inet.h24 #define htonl ntohl
31 #define ntohl(n) (n) macro
38 extern UINT32 ntohl(UINT32 n);
/external/libnfc-nci/halimpl/bcm2079x/gki/common/
Dgki_inet.h24 #define htonl ntohl
31 #define ntohl(n) (n) macro
38 extern UINT32 ntohl(UINT32 n);
/external/iproute2/tc/
Df_u32.c829 switch (ntohl(key->mask)) { in print_ipv4()
831 fprintf(f, "\n match IP ihl %u", ntohl(key->val) >> 24); in print_ipv4()
834 fprintf(f, "\n match IP dsfield %#x", ntohl(key->val) >> 16); in print_ipv4()
839 if (ntohl(key->mask) == 0x00ff0000) { in print_ipv4()
840 fprintf(f, "\n match IP protocol %d", ntohl(key->val) >> 16); in print_ipv4()
859 switch (ntohl(key->mask)) { in print_ipv4()
862 ntohl(key->val) & 0xffff); in print_ipv4()
866 ntohl(key->val) >> 16); in print_ipv4()
870 ntohl(key->val) & 0xffff, in print_ipv4()
871 ntohl(key->val) >> 16); in print_ipv4()
[all …]
Dem_u32.c163 (unsigned int) ntohl(u_key->val), in u32_print_eopt()
164 (unsigned int) ntohl(u_key->mask), in u32_print_eopt()
/external/valgrind/coregrind/
Dfixup_macho_loadcmds.c204 if (ntohl(fh_be->magic) == FAT_MAGIC) in is_macho_object_file()
285 fh.magic = ntohl(fh_be->magic); in map_image_aboard()
286 fh.nfat_arch = ntohl(fh_be->nfat_arch); in map_image_aboard()
307 arch.cputype = ntohl(arch_be->cputype); in map_image_aboard()
308 arch.cpusubtype = ntohl(arch_be->cpusubtype); in map_image_aboard()
309 arch.offset = ntohl(arch_be->offset); in map_image_aboard()
310 arch.size = ntohl(arch_be->size); in map_image_aboard()
Dlauncher-darwin.c136 uint32_t nfat_arch = ntohl(fh->nfat_arch); in fat_has_cputype()
139 if (ntohl(fa[i].cputype) == cputype) return 1; in fat_has_cputype()
175 if (ntohl(fh->magic) == FAT_MAGIC) { in select_arch()
176 uint32_t nfat_arch = ntohl(fh->nfat_arch); in select_arch()
181 return name_for_cputype(ntohl(fa->cputype)); in select_arch()
/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/webrtc/webrtc/modules/audio_coding/test/
DRTPFile.cc158 start_sec = ntohl(start_sec); in ReadHeader()
160 start_usec = ntohl(start_usec); in ReadHeader()
162 source = ntohl(source); in ReadHeader()
204 *offset = ntohl(*offset); in Read()
/external/iproute2/ip/
Dip6tunnel.c98 __u32 val = ntohl(p->flowinfo & IP6_FLOWINFO_TCLASS); in print_tunnel()
105 printf(" flowlabel 0x%05x", ntohl(p->flowinfo & IP6_FLOWINFO_FLOWLABEL)); in print_tunnel()
107 printf(" (flowinfo 0x%08x)", ntohl(p->flowinfo)); in print_tunnel()
114 printf(" key %u", ntohl(p->i_key)); in print_tunnel()
117 printf(" ikey %u", ntohl(p->i_key)); in print_tunnel()
119 printf(" okey %u", ntohl(p->o_key)); in print_tunnel()
Diptunnel.c230 if (p->i_key == 0 && IN_MULTICAST(ntohl(p->iph.daddr))) { in parse_args()
234 if (p->o_key == 0 && IN_MULTICAST(ntohl(p->iph.daddr))) { in parse_args()
238 if (IN_MULTICAST(ntohl(p->iph.daddr)) && !p->iph.saddr) { in parse_args()
369 printf(" key %u", ntohl(p->i_key)); in print_tunnel()
372 printf(" ikey %u", ntohl(p->i_key)); in print_tunnel()
374 printf(" okey %u", ntohl(p->o_key)); in print_tunnel()
/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/e2fsprogs/e2fsck/
Djournal.c533 switch (ntohl(jsb->s_header.h_blocktype)) { in e2fsck_journal_load()
545 if (ntohl(jsb->s_nr_users) > 1 && in e2fsck_journal_load()
548 if (ntohl(jsb->s_nr_users) > 1) { in e2fsck_journal_load()
586 if (ntohl(jsb->s_maxlen) < journal->j_maxlen) in e2fsck_journal_load()
587 journal->j_maxlen = ntohl(jsb->s_maxlen); in e2fsck_journal_load()
588 else if (ntohl(jsb->s_maxlen) > journal->j_maxlen) { in e2fsck_journal_load()
595 journal->j_tail_sequence = ntohl(jsb->s_sequence); in e2fsck_journal_load()
597 journal->j_tail = ntohl(jsb->s_start); in e2fsck_journal_load()
598 journal->j_first = ntohl(jsb->s_first); in e2fsck_journal_load()
599 journal->j_last = ntohl(jsb->s_maxlen); in e2fsck_journal_load()
/external/libexif/m4m/
Dgp-byteorder.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
74 AC_HAVE_SYMBOL(ntohl,arpa/inet.h,
76 /* ntohl and relatives live here */
81 [AC_HAVE_SYMBOL(ntohl,netinet/in.h,
83 /* ntohl and relatives live here */
181 #define swap32(x) ntohl(x)
223 #define be32toh(x) ntohl(x)
/external/valgrind/coregrind/m_ume/
Dmacho.c742 fh.nfat_arch = VG_(ntohl)(fh.nfat_arch); in load_fat_file()
758 arch.cputype = VG_(ntohl)(arch.cputype); in load_fat_file()
759 arch.cpusubtype = VG_(ntohl)(arch.cpusubtype); in load_fat_file()
760 arch.offset = VG_(ntohl)(arch.offset); in load_fat_file()
761 arch.size = VG_(ntohl)(arch.size); in load_fat_file()
762 arch.align = VG_(ntohl)(arch.align); in load_fat_file()
827 (*magic == MAGIC || *magic == VG_(ntohl)(FAT_MAGIC))) in VG_()
/external/iproute2/include/
Dutils.h207 #define ntohll(x) ((1==ntohl(1)) ? (x) : ((uint64_t)ntohl((x) & 0xFFFFFFFF) << 32) | ntohl((x) >> 3…
/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/android-clat/
Ddump.c79 printf("flow label = %x\n",ntohl(header->ip6_flow & 0x000fffff)); in dump_ip6()
178 printf("seq = %x\n",ntohl(tcp->seq)); in dump_tcp_generic()
179 printf("ack = %x\n",ntohl(tcp->ack_seq)); in dump_tcp_generic()

1234567