9 #include "coap_config.h" 11 #if !defined(WITH_CONTIKI) && !defined(WITH_LWIP) 15 #ifdef HAVE_ARPA_INET_H 16 #include <arpa/inet.h> 18 #ifdef HAVE_NETINET_IN_H 19 #include <netinet/in.h> 21 #ifdef HAVE_SYS_SOCKET_H 22 #include <sys/socket.h> 24 #ifdef HAVE_WS2TCPIP_H 32 #define IN_MULTICAST(Address) (0) 43 switch (a->
addr.
sa.sa_family) {
48 sizeof(
struct in_addr)) == 0;
52 sizeof(
struct in6_addr)) == 0;
63 switch (a->
addr.
sa.sa_family) {
65 return IN_MULTICAST(ntohl(a->
addr.
sin.sin_addr.s_addr));
67 return IN6_IS_ADDR_MULTICAST(&a->
addr.
sin6.sin6_addr);
79 #pragma GCC diagnostic ignored "-Wunused-function" 81 static inline void dummy(
void) {
multi-purpose address abstraction
COAP_STATIC_INLINE void dummy(void)
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.