Lines Matching refs:addr
27 ip_addr_t addr; member
30 #define _coap_address_equals_impl(A, B) (!!ip_addr_cmp(&(A)->addr,&(B)->addr))
32 #define _coap_address_isany_impl(A) ip_addr_isany(&(A)->addr)
34 #define _coap_is_mcast_impl(Address) ip_addr_ismulticast(&(Address)->addr)
41 uip_ipaddr_t addr; member
47 && uip_ipaddr_cmp(&((A)->addr),&((B)->addr)))
52 #define _coap_is_mcast_impl(Address) uip_is_addr_mcast(&((Address)->addr))
64 } addr; member
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()
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()
116 coap_address_init(coap_address_t *addr) { in coap_address_init() argument
117 assert(addr); in coap_address_init()
118 memset(addr, 0, sizeof(coap_address_t)); in coap_address_init()
121 addr->size = sizeof(addr->addr); in coap_address_init()