11 #include <arpa/inet.h> 12 #include <netinet/in.h> 13 #include <sys/socket.h> 25 switch (a->
addr.
sa.sa_family) {
30 sizeof(
struct in_addr)) == 0;
34 sizeof(
struct in6_addr)) == 0;
45 switch (a->
addr.
sa.sa_family) {
47 return IN_MULTICAST(ntohl(a->
addr.
sin.sin_addr.s_addr));
49 return IN6_IS_ADDR_MULTICAST(&a->
addr.
sin6.sin6_addr);
58 static inline void dummy()
multi-purpose address abstraction
Representation of network addresses.
int coap_address_equals(const coap_address_t *a, const coap_address_t *b)
Compares given address objects a and b.
union coap_address_t::@0 addr
socklen_t size
size of addr
int coap_is_mcast(const coap_address_t *a)
Checks if given address a denotes a multicast address.