Home
last modified time | relevance | path

Searched refs:sa (Results 1 – 15 of 15) sorted by relevance

/net-tools-3.5.0/libcoap/src/
Daddress.c20 if (a->size != b->size || a->addr.sa.sa_family != b->addr.sa.sa_family) in coap_address_equals()
24 switch (a->addr.sa.sa_family) { in coap_address_equals()
Dcoap_io.c121 int sockfd = socket(addr->addr.sa.sa_family, SOCK_DGRAM, 0); in coap_new_endpoint()
134 switch(addr->addr.sa.sa_family) { in coap_new_endpoint()
153 if (bind(sockfd, &addr->addr.sa, addr->size) < 0) { in coap_new_endpoint()
172 if (getsockname(sockfd, &ep->addr.addr.sa, &ep->addr.size) < 0) { in coap_new_endpoint()
265 switch (dst->addr.sa.sa_family) { in coap_network_send()
462 if (getsockname(ep->handle.fd, &(*packet)->dst.addr.sa, &(*packet)->dst.size) < 0) { in coap_network_read()
Ddebug.c168 switch (addr->addr.sa.sa_family) { in coap_print_addr()
188 if (inet_ntop(addr->addr.sa.sa_family, addrptr, (char *)p, len) == 0) { in coap_print_addr()
195 if (addr->addr.sa.sa_family == AF_INET6) { in coap_print_addr()
Dnet.c505 switch (peer->addr.sa.sa_family) { in coap_transaction_id()
/net-tools-3.5.0/tinydtls-0.8.2/
Dsession.c51 a->size != b->size || a->addr.sa.sa_family != b->addr.sa.sa_family) in _dtls_address_equals_impl()
55 switch (a->addr.sa.sa_family) { in _dtls_address_equals_impl()
Dsession.h52 struct sockaddr sa; member
Ddebug.c124 switch (addr->addr.sa.sa_family) { in dsrv_print_addr()
147 if (inet_ntop(addr->addr.sa.sa_family, addrptr, p, len) == 0) { in dsrv_print_addr()
154 if (addr->addr.sa.sa_family == AF_INET6) { in dsrv_print_addr()
/net-tools-3.5.0/libcoap/include/coap/
Daddress.h60 struct sockaddr sa; member
77 switch (a->addr.sa.sa_family) { in _coap_address_isany_impl()
96 switch (a->addr.sa.sa_family) { in _coap_is_mcast_impl()
/net-tools-3.5.0/tinydtls-0.8.2/tests/
Ddtls-client.c200 &session->addr.sa, session->size); in send_to_peer()
219 &session.addr.sa, &session.size); in dtls_handle_read()
418 res = resolve_address(argv[optind++], &dst.addr.sa);
431 fd = socket(dst.addr.sa.sa_family, SOCK_DGRAM, 0);
Ddtls-server.c153 &session->addr.sa, session->size); in send_to_peer()
170 &session.addr.sa, &session.size); in dtls_handle_read()
/net-tools-3.5.0/
Dtunslip6.c116 get_in_addr(struct sockaddr *sa) in get_in_addr() argument
118 if(sa->sa_family == AF_INET) { in get_in_addr()
119 return &(((struct sockaddr_in*)sa)->sin_addr); in get_in_addr()
121 return &(((struct sockaddr_in6*)sa)->sin6_addr); in get_in_addr()
Dcoap-client.c1004 &session->addr.sa, session->size); in send_to_peer()
1019 0, &session.addr.sa, &session.size); in dtls_handle_read()
1780 memcpy(&dst.addr.sa, addr_send, addr_len);
/net-tools-3.5.0/libcoap/examples/
Dclient.c1133 res = resolve_address(&server, &dst.addr.sa); in main()
1145 switch (dst.addr.sa.sa_family) { in main()
1173 && (inet_ntop(dst.addr.sa.sa_family, addrptr, addr, sizeof(addr)) != 0) in main()
Dcoap-rd.c306 switch(peer->addr.sa.sa_family) { in add_source_address()
/net-tools-3.5.0/mbedtls-2.4.0/tests/data_files/
Dcert_example_wildcard.crt75 sa+TF3LEvjEmkzx9/NU9zwu+xXvptPjzMPL1oifrmnH8f3leiMWmLTNXujgG5q0L