Home
last modified time | relevance | path

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

12345678910>>...14

/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 …]
/external/syslinux/gpxe/src/net/infiniband/
Dib_pathrec.c60 "failed: %s\n", ibdev, htonl ( dgid->u.dwords[0] ), in ib_path_complete()
61 htonl ( dgid->u.dwords[1] ), in ib_path_complete()
62 htonl ( dgid->u.dwords[2] ), in ib_path_complete()
63 htonl ( dgid->u.dwords[3] ), strerror ( rc ) ); in ib_path_complete()
72 "rate %d\n", ibdev, htonl ( dgid->u.dwords[0] ), in ib_path_complete()
73 htonl ( dgid->u.dwords[1] ), htonl ( dgid->u.dwords[2] ), in ib_path_complete()
74 htonl ( dgid->u.dwords[3] ), path->av.lid, path->av.sl, in ib_path_complete()
121 htonl ( IB_SA_PATH_REC_DGID | IB_SA_PATH_REC_SGID ); in ib_create_path()
262 ibdev, htonl ( gid->u.dwords[0] ), in ib_resolve_path()
263 htonl ( gid->u.dwords[1] ), htonl ( gid->u.dwords[2] ), in ib_resolve_path()
[all …]
Dib_smc.c57 mad->hdr.attr_mod = htonl ( ibdev->port ); in ib_smc_get_port_info()
173 htonl ( ibdev->gid.u.dwords[0] ), in ib_smc_update()
174 htonl ( ibdev->gid.u.dwords[1] ), in ib_smc_update()
175 htonl ( ibdev->gid.u.dwords[2] ), in ib_smc_update()
176 htonl ( ibdev->gid.u.dwords[3] ) ); in ib_smc_update()
Dib_cm.c66 ready->local_id = htonl ( conn->local_id ); in ib_cm_send_rtu()
67 ready->remote_id = htonl ( conn->remote_id ); in ib_cm_send_rtu()
276 connect_req->local_id = htonl ( conn->local_id ); in ib_cm_path_complete()
281 htonl ( ( qp->qpn << 8 ) | 1 ); in ib_cm_path_complete()
282 connect_req->local_eecn__initiator_depth = htonl ( ( 0 << 8 ) | 1 ); in ib_cm_path_complete()
284 htonl ( ( 0x14 << 3 ) | ( IB_CM_TRANSPORT_RC << 1 ) | in ib_cm_path_complete()
287 htonl ( ( qp->recv.psn << 8 ) | ( 0x14 << 3 ) | in ib_cm_path_complete()
301 htonl ( ( 0 << 12 ) | ( conn->qp->av.rate << 0 ) ); in ib_cm_path_complete()
Dib_packet.c90 htonl ( IB_GRH_IPVER_IPv6 << 28 ); in ib_push()
102 bth->dest_qp = htonl ( av->qpn ); in ib_push()
103 bth->ack__psn = htonl ( ( qp->send.psn++ ) & 0xffffffUL ); in ib_push()
106 deth->qkey = htonl ( av->qkey ); in ib_push()
107 deth->src_qp = htonl ( qp->ext_qpn ); in ib_push()
/external/libcups/filter/
Draster.c577 r->sync = htonl(CUPS_RASTER_SYNC_PWG); in cupsRasterOpenIO()
583 r->sync = htonl(CUPS_RASTER_SYNCapple); in cupsRasterOpenIO()
1032 fh.CutMedia = htonl(r->header.CutMedia); in cupsRasterWriteHeader()
1033 fh.Duplex = htonl(r->header.Duplex); in cupsRasterWriteHeader()
1034 fh.HWResolution[0] = htonl(r->header.HWResolution[0]); in cupsRasterWriteHeader()
1035 fh.HWResolution[1] = htonl(r->header.HWResolution[1]); in cupsRasterWriteHeader()
1036 fh.ImagingBoundingBox[0] = htonl(r->header.ImagingBoundingBox[0]); in cupsRasterWriteHeader()
1037 fh.ImagingBoundingBox[1] = htonl(r->header.ImagingBoundingBox[1]); in cupsRasterWriteHeader()
1038 fh.ImagingBoundingBox[2] = htonl(r->header.ImagingBoundingBox[2]); in cupsRasterWriteHeader()
1039 fh.ImagingBoundingBox[3] = htonl(r->header.ImagingBoundingBox[3]); in cupsRasterWriteHeader()
[all …]
/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.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/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)
Dport-tun.c241 if (*af == htonl(AF_INET6)) in sys_tun_infilter()
242 *af = htonl(OPENBSD_AF_INET6); in sys_tun_infilter()
244 *af = htonl(OPENBSD_AF_INET); in sys_tun_infilter()
275 *af = htonl(AF_INET6); in sys_tun_outfilter()
277 *af = htonl(AF_INET); in sys_tun_outfilter()
/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()
412 jsb->s_nr_users = htonl(nr_users+1); in ext2fs_add_journal_device()
/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/syslinux/gpxe/src/drivers/net/
Dmyri10ge.c227 request->addr_low = htonl ( virt_to_bus ( iob->data ) ); in myri10ge_post_receive()
259 command->cmd = htonl ( cmd ); in myri10ge_command()
260 command->data0 = htonl ( data[0] ); in myri10ge_command()
261 command->data1 = htonl ( data[1] ); in myri10ge_command()
262 command->data2 = htonl ( data[2] ); in myri10ge_command()
265 = htonl ( virt_to_bus ( &priv->dma->command_response ) ); in myri10ge_command()
328 *priv->irq_claim = htonl ( 3 ); in myri10ge_interrupt_handler()
377 * ( priv->irq_claim + 1 ) = htonl ( 3 ); in myri10ge_interrupt_handler()
1000 kreq->addr_low = htonl ( virt_to_bus ( iobuf->data ) ); in myri10ge_net_transmit()
1001 ( ( uint32 * ) kreq ) [2] = htonl ( in myri10ge_net_transmit()
[all …]
/external/syslinux/core/lwip/src/netif/ppp/
Dipcp.c480 cilong = htonl(l); \ in ipcp_ackci()
486 cilong = htonl(l); \ in ipcp_ackci()
506 cilong = htonl(l); \ in ipcp_ackci()
571 ciaddr1 = htonl(l); \ in ipcp_nakci()
574 ciaddr2 = htonl(l); \ in ipcp_nakci()
603 cidnsaddr = htonl(l); \ in ipcp_nakci()
696 ciaddr1 = htonl(l); in ipcp_nakci()
701 ciaddr2 = htonl(l); in ipcp_nakci()
713 ciaddr1 = htonl(l); in ipcp_nakci()
773 cilong = htonl(l); \ in ipcp_rejci()
[all …]
/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()
/external/syslinux/core/lwip/src/include/lwip/
Ddef.h71 #ifdef htonl
72 #undef htonl
83 #define htonl(x) lwip_htonl(x) macro
/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()
/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/libnl/lib/route/cls/
Du32.c422 hashmask = htonl(hashmask); in rtnl_u32_set_hashmask()
615 return rtnl_u32_add_key(cls, htonl((uint32_t)val << shift), in rtnl_u32_add_key_uint8()
616 htonl((uint32_t)mask << shift), in rtnl_u32_add_key_uint8()
636 return rtnl_u32_add_key(cls, htonl((uint32_t)val << shift), in rtnl_u32_add_key_uint16()
637 htonl((uint32_t)mask << shift), in rtnl_u32_add_key_uint16()
653 return rtnl_u32_add_key(cls, htonl(val), htonl(mask), in rtnl_u32_add_key_uint32()
661 return rtnl_u32_add_key(cls, addr->s_addr, htonl(mask), off, offmask); in rtnl_u32_add_key_in_addr()
678 htonl(mask), off+4*(i-1), offmask)) < 0) in rtnl_u32_add_key_in6_addr()
/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()

12345678910>>...14