version 1.17, 1997/12/17 16:03:04 |
version 1.18, 1999/12/08 12:57:06 |
|
|
/* $NetBSD: ftp_var.h,v 1.18 1997/08/18 10:20:25 lukem Exp $ */ |
/* $NetBSD: ftp_var.h,v 1.18 1997/08/18 10:20:25 lukem Exp $ */ |
|
|
/* |
/* |
|
* Copyright (C) 1997 and 1998 WIDE Project. |
|
* All rights reserved. |
|
* |
|
* Redistribution and use in source and binary forms, with or without |
|
* modification, are permitted provided that the following conditions |
|
* are met: |
|
* 1. Redistributions of source code must retain the above copyright |
|
* notice, this list of conditions and the following disclaimer. |
|
* 2. Redistributions in binary form must reproduce the above copyright |
|
* notice, this list of conditions and the following disclaimer in the |
|
* documentation and/or other materials provided with the distribution. |
|
* 3. Neither the name of the project nor the names of its contributors |
|
* may be used to endorse or promote products derived from this software |
|
* without specific prior written permission. |
|
* |
|
* THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND |
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE |
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
|
* SUCH DAMAGE. |
|
*/ |
|
|
|
/* |
* Copyright (c) 1985, 1989, 1993, 1994 |
* Copyright (c) 1985, 1989, 1993, 1994 |
* The Regents of the University of California. All rights reserved. |
* The Regents of the University of California. All rights reserved. |
* |
* |
|
|
int trace; /* trace packets exchanged */ |
int trace; /* trace packets exchanged */ |
int hash; /* print # for each buffer transferred */ |
int hash; /* print # for each buffer transferred */ |
int mark; /* number of bytes between hashes */ |
int mark; /* number of bytes between hashes */ |
int sendport; /* use PORT cmd for each data connection */ |
int sendport; /* use PORT/LPRT cmd for each data connection */ |
int verbose; /* print messages coming back from server */ |
int verbose; /* print messages coming back from server */ |
int connected; /* 1 = connected to server, -1 = logged in */ |
int connected; /* 1 = connected to server, -1 = logged in */ |
int fromatty; /* input is from a terminal */ |
int fromatty; /* input is from a terminal */ |
|
|
int progress; /* display transfer progress bar */ |
int progress; /* display transfer progress bar */ |
int code; /* return/reply code for ftp command */ |
int code; /* return/reply code for ftp command */ |
int crflag; /* if 1, strip car. rets. on ascii gets */ |
int crflag; /* if 1, strip car. rets. on ascii gets */ |
char pasv[64]; /* passive port for proxy data connection */ |
char pasv[BUFSIZ]; /* passive port for proxy data connection */ |
int passivemode; /* passive mode enabled */ |
int passivemode; /* passive mode enabled */ |
int activefallback; /* fall back to active mode if passive fails */ |
int activefallback; /* fall back to active mode if passive fails */ |
char *altarg; /* argv[1] with no shell-like preprocessing */ |
char *altarg; /* argv[1] with no shell-like preprocessing */ |
|
|
int unix_server; /* server is unix, can use binary for ascii */ |
int unix_server; /* server is unix, can use binary for ascii */ |
int unix_proxy; /* proxy is unix, can use binary for ascii */ |
int unix_proxy; /* proxy is unix, can use binary for ascii */ |
|
|
in_port_t ftpport; /* port number to use for ftp connections */ |
char *ftpport; /* port number to use for ftp connections */ |
in_port_t httpport; /* port number to use for http connections */ |
char *httpport; /* port number to use for http connections */ |
in_port_t gateport; /* port number to use for gateftp connections */ |
char *gateport; /* port number to use for gateftp connections */ |
|
|
jmp_buf toplevel; /* non-local goto stuff for cmd scanner */ |
jmp_buf toplevel; /* non-local goto stuff for cmd scanner */ |
|
|