Lines Matching refs:a

36 #define IN6_IS_ADDR_UNSPECIFIED(a) \  argument
37 ((((a)->s6_addr32[0]) == 0) && \
38 (((a)->s6_addr32[1]) == 0) && \
39 (((a)->s6_addr32[2]) == 0) && \
40 (((a)->s6_addr32[3]) == 0))
42 #define IN6_IS_ADDR_LOOPBACK(a) \ argument
43 ((((a)->s6_addr32[0]) == 0) && \
44 (((a)->s6_addr32[1]) == 0) && \
45 (((a)->s6_addr32[2]) == 0) && \
46 (((a)->s6_addr32[3]) == ntohl(1)))
48 #define IN6_IS_ADDR_V4COMPAT(a) \ argument
49 ((((a)->s6_addr32[0]) == 0) && \
50 (((a)->s6_addr32[1]) == 0) && \
51 (((a)->s6_addr32[2]) == 0) && \
52 (((a)->s6_addr32[3]) != 0) && (((a)->s6_addr32[3]) != ntohl(1)))
54 #define IN6_IS_ADDR_V4MAPPED(a) \ argument
55 ((((a)->s6_addr32[0]) == 0) && \
56 (((a)->s6_addr32[1]) == 0) && \
57 (((a)->s6_addr32[2]) == ntohl(0x0000ffff)))
59 #define __bionic_s6_addr(a) __BIONIC_CAST(reinterpret_cast, const uint8_t*, a) argument
61 #define IN6_IS_ADDR_LINKLOCAL(a) \ argument
62 ((__bionic_s6_addr(a)[0] == 0xfe) && ((__bionic_s6_addr(a)[1] & 0xc0) == 0x80))
64 #define IN6_IS_ADDR_SITELOCAL(a) \ argument
65 ((__bionic_s6_addr(a)[0] == 0xfe) && ((__bionic_s6_addr(a)[1] & 0xc0) == 0xc0))
67 #define IN6_IS_ADDR_MULTICAST(a) (__bionic_s6_addr(a)[0] == 0xff) argument
69 #define IN6_IS_ADDR_ULA(a) ((__bionic_s6_addr(a)[0] & 0xfe) == 0xfc) argument
78 #define IPV6_ADDR_MC_SCOPE(a) (__bionic_s6_addr(a)[1] & 0x0f) argument
80 #define IN6_IS_ADDR_MC_NODELOCAL(a) \ argument
81 (IN6_IS_ADDR_MULTICAST(a) && (IPV6_ADDR_MC_SCOPE(a) == IPV6_ADDR_SCOPE_NODELOCAL))
82 #define IN6_IS_ADDR_MC_LINKLOCAL(a) \ argument
83 (IN6_IS_ADDR_MULTICAST(a) && (IPV6_ADDR_MC_SCOPE(a) == IPV6_ADDR_SCOPE_LINKLOCAL))
84 #define IN6_IS_ADDR_MC_SITELOCAL(a) \ argument
85 (IN6_IS_ADDR_MULTICAST(a) && (IPV6_ADDR_MC_SCOPE(a) == IPV6_ADDR_SCOPE_SITELOCAL))
86 #define IN6_IS_ADDR_MC_ORGLOCAL(a) \ argument
87 (IN6_IS_ADDR_MULTICAST(a) && (IPV6_ADDR_MC_SCOPE(a) == IPV6_ADDR_SCOPE_ORGLOCAL))
88 #define IN6_IS_ADDR_MC_GLOBAL(a) \ argument
89 (IN6_IS_ADDR_MULTICAST(a) && (IPV6_ADDR_MC_SCOPE(a) == IPV6_ADDR_SCOPE_GLOBAL))
91 #define IN6_ARE_ADDR_EQUAL(a, b) \ argument
92 (memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0)