Home
last modified time | relevance | path

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

/include/linux/
Din.h40 return (addr & htonl(0xff000000)) == htonl(0x7f000000); in ipv4_is_loopback()
45 return (addr & htonl(0xf0000000)) == htonl(0xe0000000); in ipv4_is_multicast()
50 return (addr & htonl(0xffffff00)) == htonl(0xe0000000); in ipv4_is_local_multicast()
56 return addr == htonl(INADDR_BROADCAST); in ipv4_is_lbcast()
61 return addr == htonl(INADDR_ALLSNOOPERS_GROUP); in ipv4_is_all_snoopers()
73 return (addr & htonl(0xff000000)) == htonl(0x0a000000); in ipv4_is_private_10()
78 return (addr & htonl(0xfff00000)) == htonl(0xac100000); in ipv4_is_private_172()
83 return (addr & htonl(0xffff0000)) == htonl(0xc0a80000); in ipv4_is_private_192()
88 return (addr & htonl(0xffff0000)) == htonl(0xa9fe0000); in ipv4_is_linklocal_169()
93 return (addr & htonl(0xffffff00)) == htonl(0xc0586300); in ipv4_is_anycast_6to4()
[all …]
Dpim.h94 return addr == htonl(0xE000000D); in pim_ipv4_all_pim_routers()
Ddccp.h204 #define DCCP_SERVICE_INVALID_VALUE htonl((__u32)-1)
Dinetdevice.h290 return htonl(~((1U<<(32-logmask))-1)); in inet_make_mask()
/include/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)
/include/net/
Daddrconf.h465 htonl(0xFF020000), 0, in addrconf_addr_solict_mult()
466 htonl(0x1), in addrconf_addr_solict_mult()
467 htonl(0xFF000000) | addr->s6_addr32[3]); in addrconf_addr_solict_mult()
476 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_ll_all_nodes()
478 (addr->s6_addr32[3] ^ htonl(0x00000001))) == 0; in ipv6_addr_is_ll_all_nodes()
488 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_ll_all_routers()
490 (addr->s6_addr32[3] ^ htonl(0x00000002))) == 0; in ipv6_addr_is_ll_all_routers()
496 return (addr->s6_addr32[2] | htonl(0x02000000)) == htonl(0x02005EFE); in ipv6_addr_is_isatap()
507 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_solict_mult()
509 (addr->s6_addr32[2] ^ htonl(0x00000001)) | in ipv6_addr_is_solict_mult()
[all …]
Dinet_ecn.h69 (label) &= ~htonl(INET_ECN_MASK << 20); \
74 (label) |= htonl(INET_ECN_ECT_0 << 20); \
142 to = from | htonl(INET_ECN_CE << 20); in IP6_ECN_set_ce()
158 to = from ^ htonl(INET_ECN_MASK << 20); in IP6_ECN_set_ect1()
Dgue.h66 #define GUE_PFLAG_REMCSUM htonl(1U << 31)
Derspan.h217 *idx = htonl(index & INDEX_MASK); in erspan_build_header()
237 return htonl((u32)h_usecs); in erspan_get_timestamp()
Dmptcp.h221 return htonl(0u); in mptcp_reset_option()
306 static inline __be32 mptcp_reset_option(const struct sk_buff *skb) { return htonl(0u); } in mptcp_reset_option()
Dipv6.h720 if (pbi && ((a1[pdw] ^ a2[pdw]) & htonl((0xffffffff) << (32 - pbi)))) in ipv6_prefix_equal()
819 return (a->s6_addr32[0] & htonl(0xfffffff0)) == htonl(0x20010010); in ipv6_addr_orchid()
824 return (addr->s6_addr32[0] & htonl(0xFF000000)) == htonl(0xFF000000); in ipv6_addr_is_multicast()
832 htonl(0x0000FFFF), in ipv6_addr_set_v4mapped()
1043 *(__be32 *)hdr = htonl(0x60000000 | (tclass << 20)) | flowlabel; in ip6_flow_hdr()
1068 return htonl(tclass << IPV6_TCLASS_SHIFT) | flowlabel; in ip6_make_flowinfo()
Dif_inet6.h269 (addr->s6_addr32[2] ^ htonl(0x0000ffff))) != 0) in ipv6_ipgre_mc_map()
Dvxlan.h455 return ipa->sin.sin_addr.s_addr == htonl(INADDR_ANY); in vxlan_addr_any()
470 return ipa->sin.sin_addr.s_addr == htonl(INADDR_ANY); in vxlan_addr_any()
Dinet_sock.h432 addr == htonl(INADDR_ANY) || in inet_addr_valid_or_nonlocal()
Dxfrm.h847 mask = htonl((0xffffffff) << (32 - pbi)); in addr_match()
861 return !((a1 ^ a2) & htonl(~0UL << (32 - prefixlen))); in addr4_match()
Dtcp.h706 tp->pred_flags = htonl((tp->tcp_header_len << 26) | in __tcp_fast_path_on()
/include/linux/byteorder/
Dgeneric.h131 #undef htonl
139 #define htonl(x) ___htonl(x) macro
/include/rdma/
Dib_sa.h252 slid = htonl(opa_get_lid_from_gid(&ib->sgid)); in path_conv_ib_to_opa()
253 dlid = htonl(opa_get_lid_from_gid(&ib->dgid)); in path_conv_ib_to_opa()
255 slid = htonl(ntohs(ib->ib.slid)); in path_conv_ib_to_opa()
256 dlid = htonl(ntohs(ib->ib.dlid)); in path_conv_ib_to_opa()
567 return htonl(ntohs(rec->ib.slid)); in sa_path_get_slid()
576 return htonl(ntohs(rec->ib.dlid)); in sa_path_get_dlid()
Dib.h39 a->sib_addr32[2] | (a->sib_addr32[3] ^ htonl(1))) == 0); in ib_addr_loopback()
Dib_addr.h199 if (addr->s6_addr32[0] == htonl(0xfe800000) && in rdma_link_local_addr()
/include/net/sctp/
Dtsnmap.h148 map->dup_tsns[map->num_dup_tsns++] = htonl(tsn); in sctp_tsnmap_mark_dup()
Dconstants.h368 ((htonl(INADDR_BROADCAST) == a) || \
Dsctp.h555 addr->v6.sin6_addr.s6_addr32[2] = htonl(0x0000ffff); in sctp_v4_map_v6()
/include/scsi/
Dfc_frame.h262 fh->fh_parm_offset = htonl(parm_offset); in __fc_fill_fc_hdr()