Lines Matching refs:addr
1001 coap_address_t addr; in get_context() local
1003 if (rp->ai_addrlen <= sizeof(addr.addr)) { in get_context()
1004 coap_address_init(&addr); in get_context()
1005 addr.size = rp->ai_addrlen; in get_context()
1006 memcpy(&addr.addr, rp->ai_addr, rp->ai_addrlen); in get_context()
1008 ctx = coap_new_context(&addr); in get_context()
1027 static char addr[INET6_ADDRSTRLEN]; in main() local
1133 res = resolve_address(&server, &dst.addr.sa); in main()
1141 dst.addr.sin.sin_port = htons(port); in main()
1145 switch (dst.addr.sa.sa_family) { in main()
1147 addrptr = &dst.addr.sin.sin_addr; in main()
1153 addrptr = &dst.addr.sin6.sin6_addr; in main()
1173 && (inet_ntop(dst.addr.sa.sa_family, addrptr, addr, sizeof(addr)) != 0) in main()
1174 && (strlen(addr) != uri.host.length in main()
1175 || memcmp(addr, uri.host.s, uri.host.length) != 0)) { in main()