11 #if !defined(WITH_CONTIKI) && !defined(WITH_LWIP) 12 #ifdef HAVE_ARPA_INET_H 13 #include <arpa/inet.h> 15 #ifdef HAVE_NETINET_IN_H 16 #include <netinet/in.h> 18 #ifdef HAVE_SYS_SOCKET_H 19 #include <sys/socket.h> 21 #ifdef HAVE_WS2TCPIP_H 27 #define IN_MULTICAST(Address) (0) 38 switch (a->
addr.
sa.sa_family) {
43 sizeof(
struct in_addr)) == 0;
47 sizeof(
struct in6_addr)) == 0;
58 switch (a->
addr.
sa.sa_family) {
60 return IN_MULTICAST(ntohl(a->
addr.
sin.sin_addr.s_addr));
62 return IN6_IS_ADDR_MULTICAST(&a->
addr.
sin6.sin6_addr);
74 #if !defined(WITH_LWIP) && !defined(WITH_CONTIKI)
multi-purpose address abstraction
void coap_address_init(coap_address_t *addr)
Resets the given coap_address_t object addr to its default values.
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.
Pulls together all the internal only header files.