Lines Matching refs:addr
306 switch(peer->addr.sa.sa_family) { in add_source_address()
316 peer->addr.sin6.sin6_addr.s6_addr[0], in add_source_address()
317 peer->addr.sin6.sin6_addr.s6_addr[1], in add_source_address()
318 peer->addr.sin6.sin6_addr.s6_addr[2], in add_source_address()
319 peer->addr.sin6.sin6_addr.s6_addr[3], in add_source_address()
320 peer->addr.sin6.sin6_addr.s6_addr[4], in add_source_address()
321 peer->addr.sin6.sin6_addr.s6_addr[5], in add_source_address()
322 peer->addr.sin6.sin6_addr.s6_addr[6], in add_source_address()
323 peer->addr.sin6.sin6_addr.s6_addr[7], in add_source_address()
324 peer->addr.sin6.sin6_addr.s6_addr[8], in add_source_address()
325 peer->addr.sin6.sin6_addr.s6_addr[9], in add_source_address()
326 peer->addr.sin6.sin6_addr.s6_addr[10], in add_source_address()
327 peer->addr.sin6.sin6_addr.s6_addr[11], in add_source_address()
328 peer->addr.sin6.sin6_addr.s6_addr[12], in add_source_address()
329 peer->addr.sin6.sin6_addr.s6_addr[13], in add_source_address()
330 peer->addr.sin6.sin6_addr.s6_addr[14], in add_source_address()
331 peer->addr.sin6.sin6_addr.s6_addr[15]); in add_source_address()
333 if (peer->addr.sin6.sin6_port != htons(COAP_DEFAULT_PORT)) { in add_source_address()
335 snprintf(buf + n, BUFSIZE - n, ":%d", peer->addr.sin6.sin6_port); in add_source_address()
592 coap_address_t addr; in get_context() local
594 if (rp->ai_addrlen <= sizeof(addr.addr)) { in get_context()
595 coap_address_init(&addr); in get_context()
596 addr.size = rp->ai_addrlen; in get_context()
597 memcpy(&addr.addr, rp->ai_addr, rp->ai_addrlen); in get_context()
599 ctx = coap_new_context(&addr); in get_context()