diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-10-31 09:31:46 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-10-31 09:31:46 +0000 |
commit | e6dc439b3a3fa2a64f9e938ac4e5810025c04242 (patch) | |
tree | bacb9f48301189de134d9f8edc2f1f45c65086c5 /include | |
parent | 8179cf2b78a508a350c7497c1e234376f20f418f (diff) | |
download | busybox-e6dc439b3a3fa2a64f9e938ac4e5810025c04242.tar.gz |
Rework wget, the xconnect interface, and its various clients
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
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h index 7587a407c..53062de4d 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -109,9 +109,9 @@ extern int is_directory(const char *name, int followLinks, struct stat *statBuf) extern int remove_file(const char *path, int flags); extern int copy_file(const char *source, const char *dest, int flags); extern ssize_t safe_read(int fd, void *buf, size_t count); -extern ssize_t safe_write(int fd, void *buf, size_t count); -extern ssize_t bb_full_write(int fd, const void *buf, size_t len); extern ssize_t bb_full_read(int fd, void *buf, size_t len); +extern ssize_t safe_write(int fd, const void *buf, size_t count); +extern ssize_t bb_full_write(int fd, const void *buf, size_t len); extern int recursive_action(const char *fileName, int recurse, int followLinks, int depthFirst, int (*fileAction) (const char *fileName, struct stat* statbuf, void* userData), @@ -294,7 +294,9 @@ extern struct hostent *xgethostbyname(const char *name); extern struct hostent *xgethostbyname2(const char *name, int af); extern int create_icmp_socket(void); extern int create_icmp6_socket(void); -extern int xconnect(const char *host, const char *port); +extern int xconnect(struct sockaddr_in *s_addr); +extern int bb_getport(char *port); +extern void bb_lookup_host(struct sockaddr_in *s_in, char *host, char *port); //#warning wrap this? char *dirname (char *path); |