This patch adds support for IPv6 for s_client and s_server and
fixes the IPv6 handling for DTLS.

s_server will listen on IPv4 and IPv6 as default. When using -4
as an argument, it will listen only on IPv4, when using -6 as
an argument, it will listen only on IPv6.

The client will use IPv4 as default. When -6 is used as a
command line argument, it will use IPv6.

The code is #ifdefed with OPENSSL_USE_IPV6. It is assumed that
a platform which defines OPENSSL_USE_IPV6 to non zero, supports
* AF_INET6
* struct sockaddr_storage
* gehostbyname2()
* inet_pton()

Best regards
Michael


Attachment: ipv6.patch
Description: Binary data



Reply via email to