aboutsummaryrefslogtreecommitdiff
path: root/libbb/xconnect.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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 :).
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-11/+1
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* - patch from Denis Vlasenko to add and use bb_xsocket() and to useBernhard Reutner-Fischer2006-04-121-1/+1
| | | | | bb_xopen some more while at it. Also use shorter boilerplate while at it.
* type typo. Thanks, Devin Bayer"Vladimir N. Oleynik"2006-02-171-1/+1
|
* Two FEATURE_CLEAN_UP patches from Shaun Jackman, closing filehandles.Rob Landley2005-08-221-0/+1
|
* Larry Doolittle writes:Eric Andersen2004-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-1/+1
|
* Modify bb_lookup_port to allow the protocol to be specified, allowingGlenn L McGrath2004-01-171-2/+2
| | | | /etc/services support for inetd, netcat and tftp.
* fix broken formattingEric Andersen2003-12-231-3/+3
|
* don't mess up errnoEric Andersen2003-12-231-2/+9
|
* Change interface to bb_lookup_host, dont try and set port inside thisGlenn L McGrath2003-12-201-18/+15
| | | | | | | | function as there is no gracefull way of handling failures. Rename bb_getport to bb_lookup_port, allow a default port to be specified so it always returns a correct value. Modify ftpgetput/rdate/wget to use the new interface. wget/rdate now use etc/services with a falback default value.
* Fix rdate and ftpget/ftpput so they compile with the new xconnect.Eric Andersen2003-11-031-2/+2
| | | | | I have checked rdate. Someone should also check ftpget/ftpput to be sure they still work.
* Rework wget, the xconnect interface, and its various clientsEric Andersen2003-10-311-49/+37
| | | | | | | | | | | | | | in order to fix the problems with round robin DNS reported by Andrew Flegg: http://busybox.net/lists/busybox/2003-October/009579.html This removes the ipv6 specific xconnect dns lookups. I do not see why that would need to be special cased for ipv6 as was done, but that will just have to be tested. So IPV6 people -- please test this change! -Erik
* Major coreutils update.Manuel Novoa III2003-03-191-3/+3
|
* use #ifdef CONFIG_* instead of #if CONFIG_*Glenn L McGrath2002-11-261-1/+1
|
* - Forgot to cvs add bb_asprintf.c (from vodz' patch #50)Robert Griebl2002-07-191-3/+2
| | | | | | | | | | - Applied Joel Coltoff's xconnect patch: On both my host system and with mipsel-linux for my embedded systems the function getservbyname() gives the port number already in host order. In fact, this is how it was used by rdate in version 0.60.3. The snapshot I have of the development tree from July 12, 2002 takes the port number and stuffs it into htons() before it uses it. This causes bugs in rdate, telnet and wget. This patch fixes that.
* Applied vodz' patches #49 and #50 (with a small correction in runshell.c)Robert Griebl2002-07-191-0/+1
| | | | | | | | | #49: I found one memory overflow and memory leak in "ln" applet. Last patch reduced also 54 bytes. ;) #50: I found bug in loginutils/Makefile.in. New patch have also new function to libbb and aplied this to applets and other cosmetic changes.
* Brad Campbell <brad@seme.com.au> notes thatEric Andersen2002-07-111-1/+2
| | | | | xconnect.c needs #include <netinet/in.h> to compile if CONFIG_FEATURE_IPV6 is not defined
* A patch from Bart Visscher <magick@linux-fan.com> to add anEric Andersen2002-07-031-0/+78
xconnect helper routine which does: -address and port resolving -tries to connect to all resolved addresses until connected -uses getaddrinfo, so works for IPv6 too This patch also ports rdate, telnet, and wget to use the new xconnect function. Thanks Bart!