Home
last modified time | relevance | path

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

123456789

/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()
82 pi->mask = htonl(0xFFFFFFFF); in get_addr_and_pi()
83 pi->key = htonl(gpi); in get_addr_and_pi()
94 pi->mask = htonl(0xFFFFFFFF); in get_addr_and_pi()
95 pi->key = htonl(gpi); in get_addr_and_pi()
107 pi->mask = htonl(0x000FFFFF); in get_addr_and_pi()
108 pi->key = htonl(flabel) & pi->mask; in get_addr_and_pi()
[all …]
Df_u32.c152 key = htonl(key); in pack_key32()
153 mask = htonl(mask); in pack_key32()
168 key = htonl(key); in pack_key16()
169 mask = htonl(mask); in pack_key16()
190 key = htonl(key); in pack_key8()
191 mask = htonl(mask); in pack_key8()
349 mask = htonl(0xFFFFFFFF << (32 - addr.bitlen)); in parse_ip_addr()
392 __u32 mask = htonl(0xFFFFFFFF << (32 - (plen - i))); in parse_ip6_addr()
432 key = htonl(key); in parse_ip6_class()
433 mask = htonl(mask); in parse_ip6_class()
[all …]
/external/srtp/crypto/include/
Dcrypto_math.h153 tmp = htonl(x->v32[3]) + htonl(y->v32[3]); \
156 tmp = htonl(x->v32[2]) + htonl(y->v32[2]) \
157 + htonl(tmp >> 32); \
160 tmp = htonl(x->v32[1]) + htonl(y->v32[1]) \
161 + htonl(tmp >> 32); \
164 tmp = htonl(x->v32[0]) + htonl(y->v32[0]) \
165 + htonl(tmp >> 32); \
Ddatatypes.h297 tmp = htonl(x->v32[3]) + htonl(y->v32[3]); \
300 tmp = htonl(x->v32[2]) + htonl(y->v32[2]) \
301 + htonl(tmp >> 32); \
304 tmp = htonl(x->v32[1]) + htonl(y->v32[1]) \
305 + htonl(tmp >> 32); \
308 tmp = htonl(x->v32[0]) + htonl(y->v32[0]) \
309 + htonl(tmp >> 32); \
415 v = make64(htonl(low32(v)),htonl(high32(v))); in be64_to_cpu()
/external/kernel-headers/original/uapi/linux/
Digmp.h118 #define IGMP_ALL_HOSTS htonl(0xE0000001L)
119 #define IGMP_ALL_ROUTER htonl(0xE0000002L)
120 #define IGMPV3_ALL_MCR htonl(0xE0000016L)
121 #define IGMP_LOCAL_GROUP htonl(0xE0000000L)
122 #define IGMP_LOCAL_GROUP_MASK htonl(0xFFFFFF00L)
/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/libpcap/Win32/Include/
Dip6_misc.h80 (((u_int32_t *) (a))[2] == htonl (0xffff)))
85 ((((u_int32_t *) (a))[0] & htonl (0xffc00000)) == htonl (0xfe800000))
89 ((u_int32_t *) (a))[2] == 0 && ((u_int32_t *) (a))[3] == htonl (1))
/external/e2fsprogs/lib/ext2fs/
Dmkjournal.c59 jsb->s_header.h_magic = htonl(JFS_MAGIC_NUMBER); in ext2fs_create_journal_superblock()
61 jsb->s_header.h_blocktype = htonl(JFS_SUPERBLOCK_V1); in ext2fs_create_journal_superblock()
63 jsb->s_header.h_blocktype = htonl(JFS_SUPERBLOCK_V2); in ext2fs_create_journal_superblock()
64 jsb->s_blocksize = htonl(fs->blocksize); in ext2fs_create_journal_superblock()
65 jsb->s_maxlen = htonl(num_blocks); in ext2fs_create_journal_superblock()
66 jsb->s_nr_users = htonl(1); in ext2fs_create_journal_superblock()
67 jsb->s_first = htonl(1); in ext2fs_create_journal_superblock()
68 jsb->s_sequence = htonl(1); in ext2fs_create_journal_superblock()
78 jsb->s_first = htonl(3); in ext2fs_create_journal_superblock()
80 jsb->s_first = htonl(2); in ext2fs_create_journal_superblock()
[all …]
/external/mtpd/
Dpptp.c63 #define MAGIC_COOKIE htonl(0x1A2B3C4D)
224 outgoing.sccrq.framing = htonl(3); in pptp_connect()
225 outgoing.sccrq.bearer = htonl(3); in pptp_connect()
293 outgoing.ocrq.minimum_speed = htonl(1000); in pptp_process()
294 outgoing.ocrq.maximum_speed = htonl(100000000); in pptp_process()
295 outgoing.ocrq.bearer = htonl(3); in pptp_process()
296 outgoing.ocrq.framing = htonl(3); in pptp_process()
/external/srtp/crypto/math/
Dmath.c739 tmp = htonl(x->v32[3]) + htonl(y->v32[3]);
742 tmp = htonl(x->v32[2]) + htonl(y->v32[2]) + htonl(tmp >> 32);
745 tmp = htonl(x->v32[1]) + htonl(y->v32[1]) + htonl(tmp >> 32);
748 tmp = htonl(x->v32[0]) + htonl(y->v32[0]) + htonl(tmp >> 32);
/external/avahi/avahi-compat-howl/
Daddress.c42 a.m_addr = htonl(INADDR_ANY); in sw_ipv4_address_any()
51 a.m_addr = htonl(INADDR_LOOPBACK); in sw_ipv4_address_loopback()
60 self->m_addr = htonl(INADDR_ANY); in sw_ipv4_address_init()
151 return self.m_addr == htonl(INADDR_ANY); in sw_ipv4_address_is_any()
/external/libnl/lib/route/cls/
Du32.c430 return rtnl_u32_add_key(cls, htonl((uint32_t)val << shift), in rtnl_u32_add_key_uint8()
431 htonl((uint32_t)mask << shift), in rtnl_u32_add_key_uint8()
451 return rtnl_u32_add_key(cls, htonl((uint32_t)val << shift), in rtnl_u32_add_key_uint16()
452 htonl((uint32_t)mask << shift), in rtnl_u32_add_key_uint16()
468 return rtnl_u32_add_key(cls, htonl(val), htonl(mask), in rtnl_u32_add_key_uint32()
476 return rtnl_u32_add_key(cls, addr->s_addr, htonl(mask), off, offmask); in rtnl_u32_add_key_in_addr()
493 htonl(mask), off+4*(i-1), offmask)) < 0) in rtnl_u32_add_key_in6_addr()
/external/iproute2/ip/
Dlink_gre6.c28 #define IP6_FLOWINFO_TCLASS htonl(0x0FF00000)
29 #define IP6_FLOWINFO_FLOWLABEL htonl(0x000FFFFF)
168 uval = htonl(uval); in gre_parse_opt()
184 uval = htonl(uval); in gre_parse_opt()
199 uval = htonl(uval); in gre_parse_opt()
255 flowinfo |= htonl((__u32)uval << 20) & IP6_FLOWINFO_TCLASS; in gre_parse_opt()
269 flowinfo |= htonl(uval) & IP6_FLOWINFO_FLOWLABEL; in gre_parse_opt()
Dlink_ip6tnl.c27 #define IP6_FLOWINFO_TCLASS htonl(0x0FF00000)
28 #define IP6_FLOWINFO_FLOWLABEL htonl(0x000FFFFF)
210 flowinfo |= htonl((__u32)uval << 20) & IP6_FLOWINFO_TCLASS; in ip6tunnel_parse_opt()
225 flowinfo |= htonl(uval) & IP6_FLOWINFO_FLOWLABEL; in ip6tunnel_parse_opt()
/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/dhcpcd-6.8.2/
Dipv4ll.c59 u32 = htonl(LINKLOCAL_MASK); in ipv4ll_make_lease()
64 u32 = htonl(LINKLOCAL_BRDC); in ipv4ll_make_lease()
163 if (IN_LINKLOCAL(htonl(state->addr.s_addr)) && in ipv4ll_conflicted()
240 if (IN_LINKLOCAL(htonl(state->addr.s_addr))) { in ipv4ll_start()
261 if (!IN_LINKLOCAL(htonl(astate->addr.s_addr))) { in ipv4ll_start()
Dipv4.c64 uint32_t mask = htonl(address.s_addr); in inet_ntocidr()
102 dst = htonl(addr); in ipv4_getnetmask()
140 if (IN_LINKLOCAL(htonl(ap->addr.s_addr))) in ipv4_iffindlladdr()
238 int sill = (sis->new->cookie == htonl(MAGIC_COOKIE)); in ipv4_ifcmp()
239 int till = (tis->new->cookie == htonl(MAGIC_COOKIE)); in ipv4_ifcmp()
276 if (rt->net.s_addr == htonl(INADDR_BROADCAST) && in desc_route()
277 rt->gate.s_addr == htonl(INADDR_ANY)) in desc_route()
280 else if (rt->net.s_addr == htonl(INADDR_BROADCAST)) in desc_route()
283 else if (rt->gate.s_addr == htonl(INADDR_ANY)) in desc_route()
286 else if (rt->dest.s_addr == htonl(INADDR_ANY) && in desc_route()
[all …]
/external/libnl/lib/netfilter/
Dlog.c131 mode.copy_range = htonl(nfnl_log_get_copy_range(log)); in nfnl_log_build_request()
140 htonl(nfnl_log_get_flush_timeout(log))) < 0) in nfnl_log_build_request()
145 htonl(nfnl_log_get_alloc_size(log))) < 0) in nfnl_log_build_request()
150 htonl(nfnl_log_get_queue_threshold(log))) < 0) in nfnl_log_build_request()
/external/iproute2/lib/
Dmpls_pton.c26 addr->entry = htonl(label << MPLS_LS_LABEL_SHIFT); in mpls_pton1()
28 addr->entry |= htonl(1 << MPLS_LS_S_SHIFT); in mpls_pton1()
/external/srtp/test/
Drtp.c37 sender->message.header.ts = htonl(sender->message.header.ts); in rtp_sendto()
108 sender->message.header.ssrc = htonl(ssrc); in rtp_sender_init()
132 rcvr->message.header.ssrc = htonl(ssrc); in rtp_receiver_init()
/external/e2fsprogs/e2fsck/
Djournal.c530 if (jsb->s_header.h_magic != htonl(JFS_MAGIC_NUMBER)) in e2fsck_journal_load()
579 if (jsb->s_blocksize != htonl(journal->j_blocksize)) { in e2fsck_journal_load()
619 if (jsb->s_header.h_magic != htonl(JFS_MAGIC_NUMBER) || in e2fsck_journal_reset_super()
620 jsb->s_header.h_blocktype != htonl(JFS_SUPERBLOCK_V1)) { in e2fsck_journal_reset_super()
621 jsb->s_header.h_magic = htonl(JFS_MAGIC_NUMBER); in e2fsck_journal_reset_super()
622 jsb->s_header.h_blocktype = htonl(JFS_SUPERBLOCK_V2); in e2fsck_journal_reset_super()
630 jsb->s_blocksize = htonl(ctx->fs->blocksize); in e2fsck_journal_reset_super()
631 jsb->s_maxlen = htonl(journal->j_maxlen); in e2fsck_journal_reset_super()
632 jsb->s_first = htonl(1); in e2fsck_journal_reset_super()
642 jsb->s_sequence = htonl(new_seq); in e2fsck_journal_reset_super()
[all …]
Drevoke.c508 header->h_magic = htonl(JFS_MAGIC_NUMBER); in write_one_revoke_record()
509 header->h_blocktype = htonl(JFS_REVOKE_BLOCK); in write_one_revoke_record()
510 header->h_sequence = htonl(transaction->t_tid); in write_one_revoke_record()
521 htonl(record->blocknr); in write_one_revoke_record()
546 header->r_count = htonl(offset); in flush_descriptor()
/external/iptables/extensions/
Dlibxt_HMARK.c221 info->port_set.v32 = htonl(cb->val.u32); in HMARK_parse()
241 info->port_mask.v32 = htonl(cb->val.u32); in HMARK_parse()
297 printf("spi-mask 0x%x ", htonl(info->port_mask.v32)); in HMARK_print()
303 printf("spi 0x%x ", htonl(info->port_set.v32)); in HMARK_print()
363 htonl(info->port_mask.v32)); in HMARK_save()
371 printf(" --hmark-spi 0x%08x", htonl(info->port_set.v32)); in HMARK_save()
/external/tcpdump/
Dip6.h99 #define IPV6_FLOWINFO_MASK ((uint32_t)htonl(0x0fffffff)) /* flow info (28 bits) */
100 #define IPV6_FLOWLABEL_MASK ((uint32_t)htonl(0x000fffff)) /* flow label (20 bits) */

123456789