kernel-ark/include
Julian Anastasov 87375ab47c [IPVS]: ip_vs_ftp breaks connections using persistence
ip_vs_ftp when loaded can create NAT connections with unknown client
port for passive FTP. For such expectations we lookup with cport=0 on
incoming packet but it matches the format of the persistence templates
causing packets to other persistent virtual servers to be forwarded to
real server without creating connection. Later the reply packets are
treated as foreign and not SNAT-ed.

This patch changes the connection lookup for packets from clients:

* introduce IP_VS_CONN_F_TEMPLATE connection flag to mark the
  connection as template

* create new connection lookup function just for templates -
  ip_vs_ct_in_get

* make sure ip_vs_conn_in_get hits only connections with
  IP_VS_CONN_F_NO_CPORT flag set when s_port is 0. By this way
  we avoid returning template when looking for cport=0 (ftp)

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
2005-09-14 21:08:51 -07:00
..
acpi
asm-alpha [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-arm [ARM SMP] Add timer/watchdog defines for MPCore 2005-09-14 23:10:48 +01:00
asm-arm26 [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-cris
asm-frv [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-generic
asm-h8300 [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-i386 [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-ia64 Pull fix-offsets-h into release branch 2005-09-14 14:14:45 -07:00
asm-m32r [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-m68k [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-m68knommu [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-mips [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-parisc [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-powerpc
asm-ppc [PATCH] ppc32 8xx: flush_tlb_range() declaration uses wrong pointer type 2005-09-14 14:34:17 -07:00
asm-ppc64
asm-s390
asm-sh [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-sh64 [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-sparc
asm-sparc64
asm-um
asm-v850
asm-x86_64 [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
asm-xtensa [PATCH] feature removal of io_remap_page_range() 2005-09-13 08:22:33 -07:00
linux [NETLINK]: Reserve a slot for NETLINK_GENERIC. 2005-09-14 20:52:37 -07:00
math-emu
media
mtd
net [IPVS]: ip_vs_ftp breaks connections using persistence 2005-09-14 21:08:51 -07:00
pcmcia
rdma
rxrpc
scsi
sound
video [PATCH] drivers/video: Replace custom macro with isdigit() 2005-09-13 08:22:33 -07:00