diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-06 17:43:29 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-06 17:43:29 +0200 |
commit | f6916dbed4233ef0e202d1b299cb5a2e9287a696 (patch) | |
tree | a761598c5f3d6e935239d8631e7f984c4cd490d6 /networking/ftpd.c | |
parent | fcad7681f8a835f5c7b2093da505f46865a89d25 (diff) | |
download | busybox-w32-f6916dbed4233ef0e202d1b299cb5a2e9287a696.tar.gz busybox-w32-f6916dbed4233ef0e202d1b299cb5a2e9287a696.tar.bz2 busybox-w32-f6916dbed4233ef0e202d1b299cb5a2e9287a696.zip |
telnetd: fill hostname field in utmp/wtmp records
function old new delta
get_lsa - 109 +109
make_new_session 438 504 +66
get_peer_lsa - 10 +10
ftpd_main 2340 2267 -73
get_sock_lsa 101 10 -91
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 1/2 up/down: 185/-164) Total: 21 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ftpd.c')
-rw-r--r-- | networking/ftpd.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c index 375cc0ca5..9d43ea3a2 100644 --- a/networking/ftpd.c +++ b/networking/ftpd.c | |||
@@ -461,21 +461,6 @@ handle_epsv(void) | |||
461 | free(response); | 461 | free(response); |
462 | } | 462 | } |
463 | 463 | ||
464 | /* libbb candidate */ | ||
465 | static | ||
466 | len_and_sockaddr* get_peer_lsa(int fd) | ||
467 | { | ||
468 | len_and_sockaddr *lsa; | ||
469 | socklen_t len = 0; | ||
470 | |||
471 | if (getpeername(fd, NULL, &len) != 0) | ||
472 | return NULL; | ||
473 | lsa = xzalloc(LSA_LEN_SIZE + len); | ||
474 | lsa->len = len; | ||
475 | getpeername(fd, &lsa->u.sa, &lsa->len); | ||
476 | return lsa; | ||
477 | } | ||
478 | |||
479 | static void | 464 | static void |
480 | handle_port(void) | 465 | handle_port(void) |
481 | { | 466 | { |