diff options
author | ru <ru@FreeBSD.org> | 2000-06-14 16:09:35 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2000-06-14 16:09:35 +0000 |
commit | 3fa18b8916fe9b25c5597ac51644d51a66e57238 (patch) | |
tree | d69af5730e2b0b6f917d67e1eb14b4671f019e7e /sys/netinet/libalias/alias_local.h | |
parent | 7fdfc2ad2ca6774773c812876c9e0c5b7023d9cb (diff) | |
download | FreeBSD-src-3fa18b8916fe9b25c5597ac51644d51a66e57238.zip FreeBSD-src-3fa18b8916fe9b25c5597ac51644d51a66e57238.tar.gz |
- Added support for passive mode FTP by aliasing 227 replies.
It does mean that it is now possible to run passive-mode FTP
server behind NAT.
- SECURITY: FTP aliasing engine now ensures that:
o the segment preceding a PORT/227 segment terminates with a \r\n;
o the IP address in the PORT/227 matches the source IP address of
the packet;
o the port number in the PORT command or 277 reply is greater than
or equal to 1024.
Submitted by: Erik Salander <erik@whistle.com>
Reviewed by: ru
Diffstat (limited to 'sys/netinet/libalias/alias_local.h')
-rw-r--r-- | sys/netinet/libalias/alias_local.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/libalias/alias_local.h b/sys/netinet/libalias/alias_local.h index ca93151..783f6b2 100644 --- a/sys/netinet/libalias/alias_local.h +++ b/sys/netinet/libalias/alias_local.h @@ -140,6 +140,8 @@ int GetDeltaSeqOut(struct ip *, struct alias_link *); void AddSeq(struct ip *, struct alias_link *, int); void SetExpire(struct alias_link *, int); void ClearCheckNewLink(void); +void SetLastLineCrlfTermed(struct alias_link *, int); +int GetLastLineCrlfTermed(struct alias_link *); #ifndef NO_FW_PUNCH void PunchFWHole(struct alias_link *); #endif |