Lines Matching refs:a
72 int coap_address_equals(const coap_address_t *a, const coap_address_t *b);
75 _coap_address_isany_impl(const coap_address_t *a) { in _coap_address_isany_impl() argument
77 switch (a->addr.sa.sa_family) { in _coap_address_isany_impl()
79 return a->addr.sin.sin_addr.s_addr == INADDR_ANY; in _coap_address_isany_impl()
82 &a->addr.sin6.sin6_addr, in _coap_address_isany_impl()
92 _coap_is_mcast_impl(const coap_address_t *a) { in _coap_is_mcast_impl() argument
93 if (!a) in _coap_is_mcast_impl()
96 switch (a->addr.sa.sa_family) { in _coap_is_mcast_impl()
98 return IN_MULTICAST(a->addr.sin.sin_addr.s_addr); in _coap_is_mcast_impl()
100 return IN6_IS_ADDR_MULTICAST(&a->addr.sin6.sin6_addr); in _coap_is_mcast_impl()
132 coap_address_equals(const coap_address_t *a, const coap_address_t *b) { in coap_address_equals() argument
133 assert(a); assert(b); in coap_address_equals()
134 return _coap_address_equals_impl(a, b); in coap_address_equals()
144 coap_address_isany(const coap_address_t *a) { in coap_address_isany() argument
145 assert(a); in coap_address_isany()
146 return _coap_address_isany_impl(a); in coap_address_isany()
154 coap_is_mcast(const coap_address_t *a) { in coap_is_mcast() argument
155 return a && _coap_is_mcast_impl(a); in coap_is_mcast()