ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Windows/router/ftp.h
Revision: 1.1
Committed: 2004-12-05T16:48:36Z (19 years, 11 months ago) by gbeauche
Content type: text/plain
Branch: MAIN
CVS Tags: nigel-build-19, nigel-build-17
Log Message:
import NAT-Router code from original Basilisk II for Windows

File Contents

# User Rev Content
1 gbeauche 1.1 /*
2     * ftp.h - ip router
3     *
4     * Basilisk II (C) 1997-2001 Christian Bauer
5     *
6     * Windows platform specific code copyright (C) Lauri Pesonen
7     *
8     * This program is free software; you can redistribute it and/or modify
9     * it under the terms of the GNU General Public License as published by
10     * the Free Software Foundation; either version 2 of the License, or
11     * (at your option) any later version.
12     *
13     * This program is distributed in the hope that it will be useful,
14     * but WITHOUT ANY WARRANTY; without even the implied warranty of
15     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16     * GNU General Public License for more details.
17     *
18     * You should have received a copy of the GNU General Public License
19     * along with this program; if not, write to the Free Software
20     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21     */
22    
23     #ifndef _FTP_H_
24     #define _FTP_H_
25    
26     // Read the preferences.
27     void init_ftp();
28    
29     // Compares against a list provided by the user.
30     bool ftp_is_ftp_port( uint16 port );
31    
32     // Determine whether this is a ftp client PORT command or ftp server entering to passive mode.
33     void ftp_parse_port_command(
34     char *buf,
35     uint32 count,
36     uint16 &ftp_data_port,
37     bool is_pasv
38     );
39    
40     // Build a new command using ip and port.
41     void ftp_modify_port_command(
42     char *buf,
43     int &count,
44     const uint32 max_size,
45     const uint32 ip,
46     const uint16 port,
47     const bool is_pasv
48     );
49    
50     #endif // _FTP_H_