diff options
author | Denis Vlasenko | 2007-01-10 09:28:01 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-01-10 09:28:01 +0000 |
commit | 9de420c27cbbbd99bedc95782a6937039ff071bb (patch) | |
tree | 01c0783874d5c429b4f71496f18028d46afae302 /networking/telnetd.c | |
parent | 62a6983a818ce701b924f84bf23716c4fbff170a (diff) | |
download | busybox-9de420c27cbbbd99bedc95782a6937039ff071bb.zip busybox-9de420c27cbbbd99bedc95782a6937039ff071bb.tar.gz |
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).
Diffstat (limited to 'networking/telnetd.c')
-rw-r--r-- | networking/telnetd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c index 604f65c..a0ee2c3 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c @@ -414,7 +414,7 @@ telnetd_main(int argc, char **argv) if (IS_INETD) { sessions = make_new_session(0, 1); } else { - master_fd = create_and_bind_socket_ip4or6(opt_bindaddr, portnbr); + master_fd = create_and_bind_stream_or_die(opt_bindaddr, portnbr); xlisten(master_fd, 1); if (!(opt & OPT_FOREGROUND)) xdaemon(0, 0); |