aboutsummaryrefslogtreecommitdiff
path: root/libbb/xconnect.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* A few minor portability improvementsDan Fandrich2010-06-191-0/+1
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* telnetd: fill hostname field in utmp/wtmp recordsDenys Vlasenko2010-04-061-3/+13
| | | | | | | | | | | | | 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>
* Hurd compat fixes. Mostly dealing with absent PATH_MAXJérémie Koenig2010-03-261-0/+10
| | | | | Signed-off-by: Jérémie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: gethostname-related fixesDenys Vlasenko2010-02-271-22/+0
| | | | | | | | function old new delta hostname_main 218 231 +13 nfsmount 3541 3474 -67 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: locally bind every peer socket. +22 bytesDenys Vlasenko2009-11-241-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix trivial compile breakageDenys Vlasenko2009-11-241-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntp: simplifications; libbb: simpler resolution of numeric hostnamesDenys Vlasenko2009-11-241-5/+36
| | | | | | | | | | | | | function old new delta str2sockaddr 405 567 +162 ntp_init 310 317 +7 scale_interval 58 59 +1 error_interval 22 23 +1 ntpd_main 3257 3214 -43 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/1 up/down: 171/-43) Total: 128 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: use "can't" instead of "cannot"Denys Vlasenko2009-11-131-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more C standard compat fixes from Dan FandrichDenys Vlasenko2009-09-061-0/+1
| | | | | | | function old new delta docolon 207 204 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add FEATURE_UNIX_LOCAL. By Ingo van Lil (inguin AT gmx.de)Denis Vlasenko2009-04-251-1/+23
|
* *: remove check for errors on getsockaddr in cases we know they can't happenDenis Vlasenko2009-04-211-8/+13
| | | | | | | | | | | | libbb: make get_sock_lsa use only one getsockaddr syscall, not two function old new delta get_sock_lsa 72 101 +29 do_iplink 1151 1137 -14 arping_main 1585 1569 -16 dolisten 789 755 -34 xrtnl_open 161 94 -67
* *: mass renaming of USE_XXXX to IF_XXXXDenis Vlasenko2009-04-211-5/+5
| | | | | | and SKIP_XXXX to IF_NOT_XXXX - the second one was especially badly named. It was not skipping anything!
* ftpd: EPSV and SIZE support. Tested to work on IPv6 too.Denis Vlasenko2009-03-091-2/+7
| | | | | | | | | | | | | | | | | libbb: str2sockaddr shuld accept [IPv6] addr without port - wget 'ftp://[::1]/file' needs that to work. function old new delta bind_for_passive_mode - 129 +129 get_nport - 30 +30 ftpd_main 1731 1760 +29 str2sockaddr 412 431 +19 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 2/0 up/down: 207/0) Total: 207 bytes text data bss dec hex filename 808568 476 7864 816908 c770c busybox_old 808804 476 7864 817144 c77f8 busybox_unstripped
* *: move get_sock_lsa and xwrite_str to libbb, use where appropriateDenis Vlasenko2009-03-091-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta get_sock_lsa - 72 +72 buffer_fill_and_print 179 196 +17 parse_expr 824 832 +8 read_base64 343 348 +5 nameval 202 206 +4 fbset_main 1694 1698 +4 expand 1849 1853 +4 udhcp_send_kernel_packet 249 252 +3 udhcp_get_option 223 222 -1 chat_main 1246 1245 -1 pack_gzip 1661 1659 -2 doset 299 297 -2 bb__parsespent 119 117 -2 test_main 260 257 -3 qgravechar 109 106 -3 tcpudpsvd_main 1834 1830 -4 sysctl_display_all 589 580 -9 xopen_xwrite_close 44 33 -11 prs 30 18 -12 find_main 418 406 -12 full_write2_str 25 12 -13 adduser_main 667 654 -13 evaltreenr 817 802 -15 evaltree 817 802 -15 tftpd_main 526 493 -33 ftpd_main 2050 1990 -60 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 7/18 up/down: 117/-211) Total: -94 bytes
* add a note that SO_BINDTODEVICE needs padded iface name on 2.6.26Denis Vlasenko2008-12-101-1/+3
|
* *: fix SO_BINDTODEVICE. Kernel wants at least IFNAMSIZ bytes there.Denis Vlasenko2008-12-101-0/+15
|
* Fix forgotten license commentsDenis Vlasenko2008-12-071-0/+1
|
* *: introduce and use FAST_FUNC: regparm on i386, otherwise no-onDenis Vlasenko2008-06-271-25/+25
| | | | | | | text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
* inetd: make it NOMMU-capable and IPv6-friendly. Lots of renamesDenis Vlasenko2008-03-121-5/+16
| | | | | | | | | | of variable/function names Total: -2474 bytes text data bss dec hex filename 802215 661 7452 810328 c5d58 busybox_old 800120 661 7428 808209 c5511 busybox_unstripped
* - be C99 friendly. Anonymous unions are a GNU extension. This change isBernhard Reutner-Fischer2008-01-291-14/+14
| | | | | size-neutral WRT -std=gnu99 and fixes several compilation errors for strict C99 mode.
* Introduce FEATURE_PREFER_IPV4_ADDRESS. If selected, we have:Denis Vlasenko2007-11-141-3/+16
| | | | | | function old new delta str2sockaddr 328 344 +16
* introduce and use xdup2(int, int)Denis Vlasenko2007-08-181-14/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stop checking whether setsockopt_reuseaddr(int fd) was successful (it always is) remove second parameter (sockllen) from xmalloc_sockaddr2xxxxx functions sockaddr2str 142 156 +14 collect_blk 467 474 +7 xdup2 28 33 +5 singlemount 4456 4454 -2 print_host 214 212 -2 nslookup_main 139 137 -2 ftpgetput_main 414 412 -2 udhcpd_main 1258 1255 -3 udhcpc_main 2405 2402 -3 traceroute_main 4125 4122 -3 nc_main 1072 1069 -3 buffer_fill_and_print 76 73 -3 xmalloc_sockaddr2hostonly_noport 18 14 -4 xmalloc_sockaddr2host_noport 18 14 -4 xmalloc_sockaddr2host 15 11 -4 xmalloc_sockaddr2dotted_noport 18 14 -4 xmalloc_sockaddr2dotted 18 14 -4 wget_main 2618 2614 -4 ping_main 393 389 -4 ip_port_str 120 115 -5 dhcprelay_main 1146 1141 -5 dnsd_main 1531 1525 -6 passwd_main 1110 1102 -8 udhcp_kernel_packet 206 197 -9 udhcp_listen_socket 154 144 -10 getty_main 2576 2566 -10 setup 655 640 -15 xmove_fd 51 34 -17 dolisten 759 742 -17 tcpudpsvd_main 1866 1836 -30 startservice 339 299 -40
* nc: make connecting to IPv4 from IPv6-enabled hosts easierDenis Vlasenko2007-06-051-12/+20
| | | | (was requiring -s <local addr>)
* make a few struct bb_applet members conditionalDenis Vlasenko2007-04-101-1/+1
| | | | | | rename sllep_and_die -> xfunc_die make fflush_stdout_and_exit NOFORK-safe fix some buglets found by randomconfig
* nc: port nc 1.10 to busyboxDenis Vlasenko2007-04-051-1/+1
|
* test: comment out unused codeDenis Vlasenko2007-04-021-6/+22
| | | | | udpsvd: fake it compile tcpsvd: more optimal memorizing of IP's for -C
* tcpsvd: new appletDenis Vlasenko2007-04-011-7/+5
| | | | | | | | | | It's a GPL-ed 'clone' of Dan Bernstein's tcpserver. Author: Gerrit Pape <pape@smarden.org> http://smarden.sunsite.dk/ipsvd/ size tcpsvd.o text data bss dec hex filename 2571 4 16 2591 a1f tcpsvd.o
* ping: support -I addr in family neutral manner; reuse a bit of common codeDenis Vlasenko2007-02-091-1/+1
|
* tftp: fix IPv6 falloutDenis Vlasenko2007-02-071-1/+1
|
* udhcp: use improved gethostbyname replacement from IPv6 codeDenis Vlasenko2007-02-041-0/+5
|
* mount: (try to) support cifs with IPv6Denis Vlasenko2007-02-041-1/+7
|
* add x to IPv6 functions which can dieDenis Vlasenko2007-02-041-20/+21
|
* Unify ping and ping6. ping has -4 and -6 which forceDenis Vlasenko2007-01-241-0/+2
| | | | | | | | name resolution into IP or IPv6 only, otherwise we take address family returned by host2sockaddr() in lsa->sa.sa_family. IOW: "ping ::1" with do IPv6 ping, "ping 127.0.0.1" will do IPv4 ping. ping6 is aliased to "ping -6".
* ping6: stop using xgethostbyname2, remove it from libbb.Denis Vlasenko2007-01-221-4/+23
|
* nslookup: full circle. Here we started IPv6 work. Use "new API"Denis Vlasenko2007-01-221-2/+22
| | | | and thus save a few bytes.
* cleanups: unnecessary casts, unified const_1, eliminate cross-.c fileDenis Vlasenko2007-01-221-3/+2
| | | | | prototypes (heresy!), add spaces in places like "flags&NETSTAT_CONNECTED", removed unused #defines, #ifdef -> #if, use uint32_t for ipv4 addrs.
* comment out unused old networking API partsDenis Vlasenko2007-01-221-8/+16
| | | | sockaddr2dotted: return IPV6 addrs in [addr]:port form (was addr:port)
* small fixes to ipv6 infrastructureDenis Vlasenko2007-01-131-0/+2
|
* next part of ipv6-ization. mostly netcat.Denis Vlasenko2007-01-121-16/+34
|
* next part of ipv6-ization is here: wget & httpdDenis Vlasenko2007-01-121-6/+5
|
* ipv6-ization efforts continue. Few bugs are found,Denis Vlasenko2007-01-111-10/+50
| | | | unknown number likely introduced...
* a bit more IPv6-ization workDenis Vlasenko2007-01-101-21/+10
| | | | syslogd: converted to use it (in -R host:port)
* Improve generic ipv4+ipv6 support in libbb.Denis Vlasenko2007-01-101-83/+151
| | | | | | | | | 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).
* use xbind, xconnect where appropriate.Denis Vlasenko2006-12-231-1/+2
| | | | small edits to arping
* introduce setsockopt_reuseaddr(int fd), setsockopt_broadcast(int fd),Denis Vlasenko2006-11-221-2/+11
| | | | | use them where appropriate. 200 bytes saved
* fix double mergeDenis Vlasenko2006-11-221-76/+0
|
* telnetd: move generic stuff into libbb. It will make it easyDenis Vlasenko2006-11-221-0/+152
| | | | to make other server applets IPv6-aware too.
* rodata cleanup. "unable to" == "cannot". -300 bytesDenis Vlasenko2006-11-181-2/+2
|
* xconnect is non-conforming to "xfunc like libc" rule. FixingDenis Vlasenko2006-10-261-6/+12
|
* wget: fix bug where wget creates null file if there is no remote one.Denis Vlasenko2006-09-231-1/+1
| | | | add O_LARGEFILE support (not run tested :).