diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-11-10 08:43:40 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-11-10 08:43:40 +0000 |
commit | e828ada7098d29aeecaffb593eb1fca1be64aa64 (patch) | |
tree | 0c1f4bf65facdaa26659f80493432d941f98ac4d /lib/libfetch/common.h | |
parent | fb75554e548c43c86778bd9497b7a542ef9db9a8 (diff) | |
download | src-e828ada7098d29aeecaffb593eb1fca1be64aa64.tar.gz src-e828ada7098d29aeecaffb593eb1fca1be64aa64.zip |
Use the documented (and historical) defaults. Centralize the decision logic
in order to avoid this bug in the future.
Submitted by: se
Notes
Notes:
svn path=/head/; revision=68551
Diffstat (limited to 'lib/libfetch/common.h')
-rw-r--r-- | lib/libfetch/common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libfetch/common.h b/lib/libfetch/common.h index 4470c5ba9d97..13723a3f83c2 100644 --- a/lib/libfetch/common.h +++ b/lib/libfetch/common.h @@ -33,6 +33,8 @@ #define FTP_DEFAULT_PORT 21 #define HTTP_DEFAULT_PORT 80 +#define FTP_DEFAULT_PROXY_PORT 21 +#define HTTP_DEFAULT_PROXY_PORT 3128 /* Structure used for error message lists */ struct fetcherr { @@ -43,6 +45,8 @@ struct fetcherr { void _fetch_seterr(struct fetcherr *p, int e); void _fetch_syserr(void); void _fetch_info(char *fmt, ...); +int _fetch_default_port(char *); +int _fetch_default_proxy_port(char *); int _fetch_connect(char *host, int port, int af, int verbose); int _fetch_getln(int fd, char **buf, size_t *size, size_t *len); int _fetch_putln(int fd, char *str, size_t len); |