diff options
author | David Cantrell <dcantrell@redhat.com> | 2006-07-27 21:55:22 +0000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2006-07-27 21:55:22 +0000 |
commit | dbe5397255ad12525c31d5834bb178b806625dbd (patch) | |
tree | 86772a7455153dd4f0498a5b1780e6f70c161bc3 /loader2/ftp.h | |
parent | 07231ba43b2a26f2a3fa638e3162b464f73633b0 (diff) | |
download | anaconda-dbe5397255ad12525c31d5834bb178b806625dbd.tar.gz anaconda-dbe5397255ad12525c31d5834bb178b806625dbd.tar.xz anaconda-dbe5397255ad12525c31d5834bb178b806625dbd.zip |
* loader2/ftp.c (ftpOpen, ftpGetFileDesc): Support IPv6 hosts, which
means using the EPSV command instead of PASV. We don't get the IP
address of the server in the response, so ftpGetFileDesc needs to
bring in the in6_addr we already made for the server so we can then
make the socket connection.
* loader2/ftp.h: Prototype updates.
* loader2/urls.c: Pass the in6_addr for the FTP server to the
ftpGetFileDesc() function.
Diffstat (limited to 'loader2/ftp.h')
-rw-r--r-- | loader2/ftp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/loader2/ftp.h b/loader2/ftp.h index 99f7329d3..1c2a1c634 100644 --- a/loader2/ftp.h +++ b/loader2/ftp.h @@ -25,7 +25,8 @@ const char * ftpStrerror(int ftpErrno, urlprotocol protocol); int ftpOpen(char * host, int family, char * name, char * password, char * proxy, int port); int ftpGetFile(int sock, char * remotename, int dest); -int ftpGetFileDesc(int sock, char * remotename); +int ftpGetFileDesc(int sock, struct in6_addr host, int family, + char * remotename); int ftpGetFileDone(int sock); int httpGetFileDesc(char * hostname, int port, char * remotename, char *extraHeaders); |