alias_ftp.c (77485) | alias_ftp.c (77701) |
---|---|
1/*- 2 * Copyright (c) 2001 Charles Mott <cmott@scientech.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * $FreeBSD: head/sys/netinet/libalias/alias_ftp.c 77701 2001-06-04 15:09:51Z brian $ 27 */ 28 |
|
1/* 2 Alias_ftp.c performs special processing for FTP sessions under 3 TCP. Specifically, when a PORT/EPRT command from the client 4 side or 227/229 reply from the server is sent, it is intercepted 5 and modified. The address is changed to the gateway machine 6 and an aliasing port is used. 7 8 For this routine to work, the message must fit entirely into a --- 26 unchanged lines hidden (view full) --- 35 Very minor changes to conform with 36 local/global/function naming conventions 37 within the packet aliasing module. 38 39 Version 3.1: May, 2000 (eds) 40 Add support for passive mode, alias the 227 replies. 41 42 See HISTORY file for record of revisions. | 29/* 30 Alias_ftp.c performs special processing for FTP sessions under 31 TCP. Specifically, when a PORT/EPRT command from the client 32 side or 227/229 reply from the server is sent, it is intercepted 33 and modified. The address is changed to the gateway machine 34 and an aliasing port is used. 35 36 For this routine to work, the message must fit entirely into a --- 26 unchanged lines hidden (view full) --- 63 Very minor changes to conform with 64 local/global/function naming conventions 65 within the packet aliasing module. 66 67 Version 3.1: May, 2000 (eds) 68 Add support for passive mode, alias the 227 replies. 69 70 See HISTORY file for record of revisions. |
43 44 $FreeBSD: head/sys/netinet/libalias/alias_ftp.c 77485 2001-05-30 14:24:35Z ru $ | |
45*/ 46 47/* Includes */ 48#include <ctype.h> 49#include <stdio.h> 50#include <string.h> 51#include <sys/types.h> 52#include <netinet/in_systm.h> --- 509 unchanged lines hidden --- | 71*/ 72 73/* Includes */ 74#include <ctype.h> 75#include <stdio.h> 76#include <string.h> 77#include <sys/types.h> 78#include <netinet/in_systm.h> --- 509 unchanged lines hidden --- |