1. 05 6月, 2013 1 次提交
  2. 27 5月, 2013 2 次提交
    • J
      netfilter: Implement RFC 1123 for FTP conntrack · 4e7dba99
      Jeff Mahoney 提交于
       The FTP conntrack code currently only accepts the following format for
       the 227 response for PASV:
       227 Entering Passive Mode (148,100,81,40,31,161).
      
       It doesn't accept the following format from an obscure server:
       227 Data transfer will passively listen to 67,218,99,134,50,144
      
       From RFC 1123:
       The format of the 227 reply to a PASV command is not
       well standardized.  In particular, an FTP client cannot
       assume that the parentheses shown on page 40 of RFC-959
       will be present (and in fact, Figure 3 on page 43 omits
       them).  Therefore, a User-FTP program that interprets
       the PASV reply must scan the reply for the first digit
       of the host and port numbers.
      
       This patch adds support for the RFC 1123 clarification by:
       - Allowing a search filter to specify NUL as the terminator so that
         try_number will return successfully if the array of numbers has been
         filled when an unexpected character is encountered.
       - Using space as the separator for the 227 reply and then scanning for
         the first digit of the number sequence. The number sequence is parsed
         out using the existing try_rfc959 but with a NUL terminator.
      
      References: https://bugzilla.novell.com/show_bug.cgi?id=466279
      References: http://bugzilla.netfilter.org/show_bug.cgi?id=574Reported-by: NMark Post <mpost@novell.com>
      Signed-off-by: NJeff Mahoney <jeffm@suse.com>
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Cc: Pablo Neira Ayuso <pablo@netfilter.org>
      Cc: Patrick McHardy <kaber@trash.net>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: netfilter-devel@vger.kernel.org
      Cc: netfilter@vger.kernel.org
      Cc: coreteam@netfilter.org
      Cc: netdev@vger.kernel.org
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      4e7dba99
    • F
      netfilter: nfnetlink_queue: avoid peer_portid test · 9d5242b1
      Florian Westphal 提交于
      The portid is set to NETLINK_CB(skb).portid at create time.
      The run-time check will always be false.
      Signed-off-by: NFlorian Westphal <fw@strlen.de>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      9d5242b1
  3. 26 5月, 2013 1 次提交
  4. 23 5月, 2013 36 次提交