diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-07 23:20:32 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-07 23:20:32 +0000 |
commit | 0850cdabded5ee04e243e45d419d7707da78bb51 (patch) | |
tree | f3edd429d95cfa19f9ae603053751247a750e534 /include | |
parent | 8c6c6e955b4a73b8a2cac8c0d277bc109b329908 (diff) | |
download | busybox-w32-0850cdabded5ee04e243e45d419d7707da78bb51.tar.gz busybox-w32-0850cdabded5ee04e243e45d419d7707da78bb51.tar.bz2 busybox-w32-0850cdabded5ee04e243e45d419d7707da78bb51.zip |
tftp: fix IPv6 fallout
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index d5a20d365..5b2f6251f 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -289,7 +289,7 @@ int setsockopt_broadcast(int fd); | |||
289 | /* NB: returns port in host byte order */ | 289 | /* NB: returns port in host byte order */ |
290 | unsigned bb_lookup_port(const char *port, const char *protocol, unsigned default_port); | 290 | unsigned bb_lookup_port(const char *port, const char *protocol, unsigned default_port); |
291 | typedef struct len_and_sockaddr { | 291 | typedef struct len_and_sockaddr { |
292 | int len; | 292 | socklen_t len; |
293 | union { | 293 | union { |
294 | struct sockaddr sa; | 294 | struct sockaddr sa; |
295 | struct sockaddr_in sin; | 295 | struct sockaddr_in sin; |
@@ -335,7 +335,7 @@ len_and_sockaddr* xhost_and_af2sockaddr(const char *host, int port, sa_family_t | |||
335 | * NB: does NOT do htons() internally, just direct assignment. */ | 335 | * NB: does NOT do htons() internally, just direct assignment. */ |
336 | void set_nport(len_and_sockaddr *lsa, unsigned port); | 336 | void set_nport(len_and_sockaddr *lsa, unsigned port); |
337 | /* Retrieve sin[6]_port or return -1 for non-INET[6] lsa's */ | 337 | /* Retrieve sin[6]_port or return -1 for non-INET[6] lsa's */ |
338 | int get_nport(len_and_sockaddr *lsa); | 338 | int get_nport(const len_and_sockaddr *lsa); |
339 | /* Reverse DNS. Returns NULL on failure. */ | 339 | /* Reverse DNS. Returns NULL on failure. */ |
340 | char* xmalloc_sockaddr2host(const struct sockaddr *sa, socklen_t salen); | 340 | char* xmalloc_sockaddr2host(const struct sockaddr *sa, socklen_t salen); |
341 | /* This one doesn't append :PORTNUM */ | 341 | /* This one doesn't append :PORTNUM */ |