Improve generic ipv4+ipv6 support in libbb.
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 10 Jan 2007 09:28:01 +0000 (09:28 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Wed, 10 Jan 2007 09:28:01 +0000 (09:28 -0000)
commit9de420c27cbbbd99bedc95782a6937039ff071bb
tree01c0783874d5c429b4f71496f18028d46afae302
parent62a6983a818ce701b924f84bf23716c4fbff170a
Improve generic ipv4+ipv6 support in libbb.
Convert telnet to it. Now this works:
telnetd -b [::1]:1234 - bind to IPv6 non-standard port
telnet [::1]:1234 - connect to IPv6 non-standard port
telnet ::1 1234 - same
This does not require ANY ipv6-specific code in applets
(no struct sockaddr_in6. In fact, no sockaddr_in, too).
include/libbb.h
libbb/xconnect.c
networking/telnet.c
networking/telnetd.c