diff options
author | des <des@FreeBSD.org> | 2000-11-10 08:43:40 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2000-11-10 08:43:40 +0000 |
commit | 985bff769942e74d8a4614115b7153a96bf6d0b6 (patch) | |
tree | da8eae065a0f12e6489dde4d5fef45d7a0b7ac3d /lib/libfetch/common.h | |
parent | faf86e96f0a2a44d87ffbce68497bf4426dcc3af (diff) | |
download | FreeBSD-src-985bff769942e74d8a4614115b7153a96bf6d0b6.zip FreeBSD-src-985bff769942e74d8a4614115b7153a96bf6d0b6.tar.gz |
Use the documented (and historical) defaults. Centralize the decision logic
in order to avoid this bug in the future.
Submitted by: se
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 4470c5b..13723a3 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); |