Home
last modified time | relevance | path

Searched refs:htonl (Results 1 – 25 of 380) sorted by relevance

12345678910>>...16

/external/iproute2/tc/
Df_rsvp.c56 pi->key = htonl(((__u32)tmp)<<16); in get_addr_and_pi()
57 pi->mask = htonl(0xFFFF0000); in get_addr_and_pi()
60 pi->key = htonl(((__u32)tmp)); in get_addr_and_pi()
61 pi->mask = htonl(0x0000FFFF); in get_addr_and_pi()
83 pi->mask = htonl(0xFFFFFFFF); in get_addr_and_pi()
84 pi->key = htonl(gpi); in get_addr_and_pi()
96 pi->mask = htonl(0xFFFFFFFF); in get_addr_and_pi()
97 pi->key = htonl(gpi); in get_addr_and_pi()
110 pi->mask = htonl(0x000FFFFF); in get_addr_and_pi()
111 pi->key = htonl(flabel) & pi->mask; in get_addr_and_pi()
[all …]
/external/strace/tests-mx32/
Dnetlink_kobject_uevent.c53 .magic = htonl(0xfeedcafe), in test_nlmsg_type_udev()
57 .filter_subsystem_hash = htonl(0xc370b302), in test_nlmsg_type_udev()
58 .filter_devtype_hash = htonl(0x10800000), in test_nlmsg_type_udev()
59 .filter_tag_bloom_hi = htonl(0x2000400), in test_nlmsg_type_udev()
60 .filter_tag_bloom_lo = htonl(0x10800000), in test_nlmsg_type_udev()
114 .magic = htonl(0xfeedcafe), in test_nlmsg_type_kernel()
118 .filter_subsystem_hash = htonl(0xfffffff), in test_nlmsg_type_kernel()
119 .filter_devtype_hash = htonl(0x10000000), in test_nlmsg_type_kernel()
120 .filter_tag_bloom_hi = htonl(0x2000400), in test_nlmsg_type_kernel()
/external/strace/tests-m32/
Dnetlink_kobject_uevent.c53 .magic = htonl(0xfeedcafe), in test_nlmsg_type_udev()
57 .filter_subsystem_hash = htonl(0xc370b302), in test_nlmsg_type_udev()
58 .filter_devtype_hash = htonl(0x10800000), in test_nlmsg_type_udev()
59 .filter_tag_bloom_hi = htonl(0x2000400), in test_nlmsg_type_udev()
60 .filter_tag_bloom_lo = htonl(0x10800000), in test_nlmsg_type_udev()
114 .magic = htonl(0xfeedcafe), in test_nlmsg_type_kernel()
118 .filter_subsystem_hash = htonl(0xfffffff), in test_nlmsg_type_kernel()
119 .filter_devtype_hash = htonl(0x10000000), in test_nlmsg_type_kernel()
120 .filter_tag_bloom_hi = htonl(0x2000400), in test_nlmsg_type_kernel()
/external/strace/tests/
Dnetlink_kobject_uevent.c53 .magic = htonl(0xfeedcafe), in test_nlmsg_type_udev()
57 .filter_subsystem_hash = htonl(0xc370b302), in test_nlmsg_type_udev()
58 .filter_devtype_hash = htonl(0x10800000), in test_nlmsg_type_udev()
59 .filter_tag_bloom_hi = htonl(0x2000400), in test_nlmsg_type_udev()
60 .filter_tag_bloom_lo = htonl(0x10800000), in test_nlmsg_type_udev()
114 .magic = htonl(0xfeedcafe), in test_nlmsg_type_kernel()
118 .filter_subsystem_hash = htonl(0xfffffff), in test_nlmsg_type_kernel()
119 .filter_devtype_hash = htonl(0x10000000), in test_nlmsg_type_kernel()
120 .filter_tag_bloom_hi = htonl(0x2000400), in test_nlmsg_type_kernel()
/external/tensorflow/tensorflow/core/util/tensor_bundle/
Dbyte_swap.h45 #define BYTE_SWAP_32(x) htonl(x)
50 ((uint64_t(htonl((x)&0x00000000ffffffffUL)) << 32) | \
51 (htonl(((x)&0xffffffff00000000UL) >> 32)))
60 #define BYTE_SWAP_32(x) htonl(x)
62 ((uint64_t(htonl((x)&0x00000000ffffffffUL)) << 32) | \
63 (htonl(((x)&0xffffffff00000000UL) >> 32)))
/external/mesa3d/src/util/sha1/
Dsha1.h36 x[0] = htonl(x[0]); \
37 x[1] = htonl(x[1]); \
38 x[2] = htonl(x[2]); \
39 x[3] = htonl(x[3]); \
40 x[4] = htonl(x[4]); } while (0)
/external/kernel-headers/original/uapi/linux/
Digmp.h120 #define IGMP_ALL_HOSTS htonl(0xE0000001L)
121 #define IGMP_ALL_ROUTER htonl(0xE0000002L)
122 #define IGMPV3_ALL_MCR htonl(0xE0000016L)
123 #define IGMP_LOCAL_GROUP htonl(0xE0000000L)
124 #define IGMP_LOCAL_GROUP_MASK htonl(0xFFFFFF00L)
/external/openssh/openbsd-compat/
Dsha1.h44 x[0] = htonl(x[0]); \
45 x[1] = htonl(x[1]); \
46 x[2] = htonl(x[2]); \
47 x[3] = htonl(x[3]); \
48 x[4] = htonl(x[4]); } while (0)
/external/libcups/cups/
Draster-stream.c548 r->sync = htonl(CUPS_RASTER_SYNC_PWG); in _cupsRasterNew()
554 r->sync = htonl(CUPS_RASTER_SYNCapple); in _cupsRasterNew()
1061 fh.CutMedia = htonl(r->header.CutMedia); in _cupsRasterWriteHeader()
1062 fh.Duplex = htonl(r->header.Duplex); in _cupsRasterWriteHeader()
1063 fh.HWResolution[0] = htonl(r->header.HWResolution[0]); in _cupsRasterWriteHeader()
1064 fh.HWResolution[1] = htonl(r->header.HWResolution[1]); in _cupsRasterWriteHeader()
1065 fh.ImagingBoundingBox[0] = htonl(r->header.ImagingBoundingBox[0]); in _cupsRasterWriteHeader()
1066 fh.ImagingBoundingBox[1] = htonl(r->header.ImagingBoundingBox[1]); in _cupsRasterWriteHeader()
1067 fh.ImagingBoundingBox[2] = htonl(r->header.ImagingBoundingBox[2]); in _cupsRasterWriteHeader()
1068 fh.ImagingBoundingBox[3] = htonl(r->header.ImagingBoundingBox[3]); in _cupsRasterWriteHeader()
[all …]
/external/mdnsresponder/mDNSShared/
Ddnssd_ipc.c156 hdr->version = htonl(hdr->version); in ConvertHeaderBytes()
157 hdr->datalen = htonl(hdr->datalen); in ConvertHeaderBytes()
158 hdr->ipc_flags = htonl(hdr->ipc_flags); in ConvertHeaderBytes()
159 hdr->op = htonl(hdr->op ); in ConvertHeaderBytes()
160 hdr->reg_index = htonl(hdr->reg_index); in ConvertHeaderBytes()
/external/ppp/pppd/
Dipcp.c515 mask = htonl(mask);
902 cilong = htonl(l); \
906 cilong = htonl(l); \
945 cilong = htonl(l); \
960 cilong = htonl(l); \
975 cilong = htonl(l); \
1049 ciaddr1 = htonl(l); \
1051 ciaddr2 = htonl(l); \
1076 ciaddr1 = htonl(l); \
1089 cidnsaddr = htonl(l); \
[all …]
/external/e2fsprogs/lib/ext2fs/
Dmkjournal.c61 jsb->s_header.h_magic = htonl(JFS_MAGIC_NUMBER); in ext2fs_create_journal_superblock()
63 jsb->s_header.h_blocktype = htonl(JFS_SUPERBLOCK_V1); in ext2fs_create_journal_superblock()
65 jsb->s_header.h_blocktype = htonl(JFS_SUPERBLOCK_V2); in ext2fs_create_journal_superblock()
66 jsb->s_blocksize = htonl(fs->blocksize); in ext2fs_create_journal_superblock()
67 jsb->s_maxlen = htonl(num_blocks); in ext2fs_create_journal_superblock()
68 jsb->s_nr_users = htonl(1); in ext2fs_create_journal_superblock()
69 jsb->s_first = htonl(1); in ext2fs_create_journal_superblock()
70 jsb->s_sequence = htonl(1); in ext2fs_create_journal_superblock()
78 jsb->s_first = htonl(ext2fs_journal_sb_start(fs->blocksize) + 1); in ext2fs_create_journal_superblock()
414 jsb->s_nr_users = htonl(nr_users+1); in ext2fs_add_journal_device()
/external/libnetfilter_conntrack/src/expect/
Dbuild.c16 nfnl_addattr32(&req->nlh, size, CTA_EXPECT_TIMEOUT,htonl(exp->timeout)); in __build_timeout()
28 nfnl_addattr32(&req->nlh, size, CTA_EXPECT_FLAGS,htonl(exp->flags)); in __build_flags()
35 nfnl_addattr32(&req->nlh, size, CTA_EXPECT_CLASS, htonl(exp->class)); in __build_class()
91 htonl(exp->nat_dir)); in __build_expect()
Dbuild_mnl.c28 mnl_attr_put_u32(nlh, CTA_EXPECT_TIMEOUT, htonl(exp->timeout)); in nfexp_nlmsg_build()
31 mnl_attr_put_u32(nlh, CTA_EXPECT_FLAGS, htonl(exp->flags)); in nfexp_nlmsg_build()
/external/libnl/lib/netfilter/
Dlog.c132 mode.copy_range = htonl(nfnl_log_get_copy_range(log)); in nfnl_log_build_request()
141 htonl(nfnl_log_get_flush_timeout(log))) < 0) in nfnl_log_build_request()
146 htonl(nfnl_log_get_alloc_size(log))) < 0) in nfnl_log_build_request()
151 htonl(nfnl_log_get_queue_threshold(log))) < 0) in nfnl_log_build_request()
/external/iputils/ninfod/
Dninfod_addrs.c284 htonl(0x7fffffff) : htonl(ifa->ifa_cacheinfo->ifa_valid); in pr_nodeinfo_ipv6addr()
286 ttl = (ifa->ifa_flags & IFA_F_PERMANENT) ? htonl(0x7fffffff) : 0; in pr_nodeinfo_ipv6addr()
346 if ((((struct in_addr *)subject)->s_addr != htonl(INADDR_LOOPBACK)) && in pr_nodeinfo_ipv4addr()
445 htonl(0x7fffffff) : htonl(ifa->ifa_cacheinfo->ifa_valid); in pr_nodeinfo_ipv4addr()
/external/iproute2/lib/
Dmpls_pton.c27 addr->entry = htonl(label << MPLS_LS_LABEL_SHIFT); in mpls_pton1()
29 addr->entry |= htonl(1 << MPLS_LS_S_SHIFT); in mpls_pton1()
/external/mtpd/
Dpptp.c67 #define MAGIC_COOKIE htonl(0x1A2B3C4D)
231 outgoing.sccrq.framing = htonl(3); in pptp_connect()
232 outgoing.sccrq.bearer = htonl(3); in pptp_connect()
460 outgoing.ocrq.minimum_speed = htonl(1000); in pptp_process()
461 outgoing.ocrq.maximum_speed = htonl(100000000); in pptp_process()
462 outgoing.ocrq.bearer = htonl(3); in pptp_process()
463 outgoing.ocrq.framing = htonl(3); in pptp_process()
/external/libnetfilter_conntrack/src/conntrack/
Dfilter_dump.c39 htonl(filter_dump->mark.val)); in __build_filter_dump()
41 htonl(filter_dump->mark.mask)); in __build_filter_dump()
Dbuild_mnl.c177 htonl(ct->protoinfo.sctp.vtag[__DIR_ORIG])); in nfct_build_protoinfo()
181 htonl(ct->protoinfo.sctp.vtag[__DIR_REPL])); in nfct_build_protoinfo()
222 htonl(ct->natseq[dir].correction_pos)); in nfct_nat_seq_adj()
224 htonl(ct->natseq[dir].offset_before)); in nfct_nat_seq_adj()
226 htonl(ct->natseq[dir].offset_after)); in nfct_nat_seq_adj()
379 mnl_attr_put_u32(nlh, CTA_STATUS, htonl(ct->status | IPS_CONFIRMED)); in nfct_build_status()
386 mnl_attr_put_u32(nlh, CTA_TIMEOUT, htonl(ct->timeout)); in nfct_build_timeout()
393 mnl_attr_put_u32(nlh, CTA_MARK, htonl(ct->mark)); in nfct_build_mark()
400 mnl_attr_put_u32(nlh, CTA_SECMARK, htonl(ct->secmark)); in nfct_build_secmark()
/external/ltp/testcases/network/sockets/
DltpServer.c117 multiServerAddr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
132 htonl(INADDR_ANY); in main()
174 udpServerAddr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
191 tcpServerAddr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
/external/android-clat/
Dclatd.c76 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, htonl(ipv6[0]), 0, 7), in configure_packet_socket()
78 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, htonl(ipv6[1]), 0, 5), in configure_packet_socket()
80 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, htonl(ipv6[2]), 0, 3), in configure_packet_socket()
82 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, htonl(ipv6[3]), 0, 1), in configure_packet_socket()
323 int mtu = detect_mtu(&Global_Clatd_Config.plat_subnet, htonl(0x08080808), mark); in configure_interface()
/external/libnl/lib/route/cls/
Du32.c473 hashmask = htonl(hashmask); in rtnl_u32_set_hashmask()
735 return rtnl_u32_add_key(cls, htonl((uint32_t)val << shift), in rtnl_u32_add_key_uint8()
736 htonl((uint32_t)mask << shift), in rtnl_u32_add_key_uint8()
756 return rtnl_u32_add_key(cls, htonl((uint32_t)val << shift), in rtnl_u32_add_key_uint16()
757 htonl((uint32_t)mask << shift), in rtnl_u32_add_key_uint16()
773 return rtnl_u32_add_key(cls, htonl(val), htonl(mask), in rtnl_u32_add_key_uint32()
781 return rtnl_u32_add_key(cls, addr->s_addr, htonl(mask), off, offmask); in rtnl_u32_add_key_in_addr()
798 htonl(mask), off+4*(i-1), offmask)) < 0) in rtnl_u32_add_key_in6_addr()
/external/crosvm/tests/
Dplugin_net_config.c57 if (net_config.host_ip != htonl(expected_ip)) { in main()
64 if (net_config.netmask != htonl(expected_netmask)) { in main()
/external/ltp/testcases/network/multicast/mc_member/
Dmc_member_test.c83 htonl((i1 << 24) | (i2 << 16) | (i3 << 8) | i4); in main()
127 htonl((g1 << 24) | (g2 << 16) | (g3 << 8) | g4); in join_group()
162 htonl((g1 << 24) | (g2 << 16) | (g3 << 8) | g4); in leave_group()

12345678910>>...16