helpers register for a specific port, but work anyway

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux