1. 22 7月, 2008 1 次提交
    • K
      netfilter: accounting rework: ct_extend + 64bit counters (v4) · 58401572
      Krzysztof Piotr Oledzki 提交于
      Initially netfilter has had 64bit counters for conntrack-based accounting, but
      it was changed in 2.6.14 to save memory. Unfortunately in-kernel 64bit counters are
      still required, for example for "connbytes" extension. However, 64bit counters
      waste a lot of memory and it was not possible to enable/disable it runtime.
      
      This patch:
       - reimplements accounting with respect to the extension infrastructure,
       - makes one global version of seq_print_acct() instead of two seq_print_counters(),
       - makes it possible to enable it at boot time (for CONFIG_SYSCTL/CONFIG_SYSFS=n),
       - makes it possible to enable/disable it at runtime by sysctl or sysfs,
       - extends counters from 32bit to 64bit,
       - renames ip_conntrack_counter -> nf_conn_counter,
       - enables accounting code unconditionally (no longer depends on CONFIG_NF_CT_ACCT),
       - set initial accounting enable state based on CONFIG_NF_CT_ACCT
       - removes buggy IPCT_COUNTER_FILLING event handling.
      
      If accounting is enabled newly created connections get additional acct extend.
      Old connections are not changed as it is not possible to add a ct_extend area
      to confirmed conntrack. Accounting is performed for all connections with
      acct extend regardless of a current state of "net.netfilter.nf_conntrack_acct".
      Signed-off-by: NKrzysztof Piotr Oledzki <ole@ans.pl>
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      58401572
  2. 08 7月, 2008 1 次提交
  3. 08 5月, 2008 1 次提交
  4. 14 4月, 2008 1 次提交
  5. 29 1月, 2008 14 次提交
  6. 31 10月, 2007 1 次提交
  7. 11 10月, 2007 1 次提交
  8. 18 7月, 2007 1 次提交
    • C
      [NETFILTER]: xt_connlimit needs to depend on nf_conntrack · 3fd8f9e4
      Cornelia Huck 提交于
      With NF_CONNTRACK=n, NETFILTER_XT_MATCH_CONNLIMIT=m I get the
      following errors on current git:
      
        CC [M]  net/netfilter/xt_connlimit.o
        In file included from net/netfilter/xt_connlimit.c:27:
        include/net/netfilter/nf_conntrack.h:100: error: field 'ct_general' has incomplete type
        include/net/netfilter/nf_conntrack.h: In function 'nf_ct_get':
        include/net/netfilter/nf_conntrack.h:164: error: 'const struct sk_buff' has no member named 'nfct'
        include/net/netfilter/nf_conntrack.h: In function 'nf_ct_put':
        include/net/netfilter/nf_conntrack.h:171: warning: implicit declaration of function 'nf_conntrack_put'
        include/net/netfilter/nf_conntrack.h: In function 'nf_ct_is_untracked':
        include/net/netfilter/nf_conntrack.h:253: error: 'const struct sk_buff' has no member named 'nfct'
        In file included from net/netfilter/xt_connlimit.c:28:
        include/net/netfilter/nf_conntrack_core.h: In function 'nf_conntrack_confirm':
        include/net/netfilter/nf_conntrack_core.h:68: error: 'struct sk_buff' has no member named 'nfct'
      
      Adding a dependency in Kconfig fixes this.
      Signed-off-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3fd8f9e4
  9. 15 7月, 2007 2 次提交
  10. 11 7月, 2007 2 次提交
  11. 09 5月, 2007 1 次提交
  12. 03 5月, 2007 1 次提交
  13. 26 4月, 2007 1 次提交
  14. 23 3月, 2007 1 次提交
    • P
      [NETFILTER]: nf_conntrack_netlink: add missing dependency on NF_NAT · ca8fbb85
      Patrick McHardy 提交于
      NF_CT_NETLINK=y, NF_NAT=m results in:
      
       LD      .tmp_vmlinux1
       net/built-in.o: dans la fonction « nfnetlink_parse_nat_proto »:
       nf_conntrack_netlink.c:(.text+0x28db9): référence indéfinie vers « nf_nat_proto_find_get »
       nf_conntrack_netlink.c:(.text+0x28dd6): référence indéfinie vers « nf_nat_proto_put »
       net/built-in.o: dans la fonction « ctnetlink_new_conntrack »:
       nf_conntrack_netlink.c:(.text+0x29959): référence indéfinie vers « nf_nat_setup_info »
       nf_conntrack_netlink.c:(.text+0x29b35): référence indéfinie vers « nf_nat_setup_info »
       nf_conntrack_netlink.c:(.text+0x29cf7): référence indéfinie vers « nf_nat_setup_info »
       nf_conntrack_netlink.c:(.text+0x29de2): référence indéfinie vers « nf_nat_setup_info »
       make: *** [.tmp_vmlinux1] Erreur 1 
      
      Reported by Kevin Baradon <kevin.baradon@gmail.com>
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ca8fbb85
  15. 13 2月, 2007 1 次提交
  16. 09 2月, 2007 2 次提交
  17. 03 2月, 2007 1 次提交
  18. 31 1月, 2007 1 次提交
  19. 05 1月, 2007 1 次提交
  20. 14 12月, 2006 1 次提交
  21. 03 12月, 2006 4 次提交