All of lore.kernel.org
 help / color / mirror / Atom feed
* helpers register for a specific port, but work anyway
@ 2008-02-27 14:32 Jan Engelhardt
  2008-02-27 14:36 ` Jozsef Kadlecsik
  0 siblings, 1 reply; 10+ messages in thread
From: Jan Engelhardt @ 2008-02-27 14:32 UTC (permalink / raw)
  To: Netfilter Developer Mailing List

Hi,


in nf_conntrack_ftp.c for example we find

             ftp[i][j].tuple.src.u.tcp.port = htons(ports[i]);

assuming the user does not specify any ports on modprobe, the default 
port list defaults to {21}, so ftp[0][x].tuple.src will contain port 21. 
But even ftp connections to non-21 ports are inspected for PORT 
commands. So, where is the magic that actually ignores the port and 
makes it work, given that __nf_ct_helper_find/helper_hash hashes on the 
port?

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-02-28 10:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-27 14:32 helpers register for a specific port, but work anyway Jan Engelhardt
2008-02-27 14:36 ` Jozsef Kadlecsik
2008-02-27 17:08   ` Jan Engelhardt
2008-02-27 17:12     ` Patrick McHardy
2008-02-27 22:47       ` Jan Engelhardt
2008-02-28  7:18         ` Jozsef Kadlecsik
2008-02-28  9:13           ` Jan Engelhardt
2008-02-28  9:42             ` Jozsef Kadlecsik
2008-02-28 10:36               ` Jan Engelhardt
2008-02-28 10:46                 ` Jan Engelhardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.