1. 18 Feb, 2010 1 commit
    • Patrick McHardy's avatar
      netfilter: nf_defrag_ipv4: fix compilation error with NF_CONNTRACK=n · 37ee3d5b
      Patrick McHardy authored
      As reported by Randy Dunlap <randy.dunlap@oracle.com>, compilation
      of nf_defrag_ipv4 fails with:
      include/net/netfilter/nf_conntrack.h:94: error: field 'ct_general' has incomplete type
      include/net/netfilter/nf_conntrack.h:178: error: 'const struct sk_buff' has no member named 'nfct'
      include/net/netfilter/nf_conntrack.h:185: error: implicit declaration of function 'nf_conntrack_put'
      include/net/netfilter/nf_conntrack.h:294: error: 'const struct sk_buff' has no member named 'nfct'
      net/ipv4/netfilter/nf_defrag_ipv4.c:45: error: 'struct sk_buff' has no member named 'nfct'
      net/ipv4/netfilter/nf_defrag_ipv4.c:46: error: 'struct sk_buff' has no member named 'nfct'
      net/nf_conntrack.h must not be included with NF_CONNTRACK=n, add a
      few #ifdefs. Long term the header file should be fixed to be usable
      even with NF_CONNTRACK=n.
      Tested-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
  2. 15 Feb, 2010 1 commit
  3. 08 Feb, 2010 1 commit
  4. 03 Feb, 2010 1 commit
  5. 15 Dec, 2009 1 commit
  6. 14 Oct, 2008 1 commit
    • Patrick McHardy's avatar
      netfilter: restore lost #ifdef guarding defrag exception · 38f7ac3e
      Patrick McHardy authored
      Nir Tzachar <nir.tzachar@gmail.com> reported a warning when sending
      fragments over loopback with NAT:
      [ 6658.338121] WARNING: at net/ipv4/netfilter/nf_nat_standalone.c:89 nf_nat_fn+0x33/0x155()
      The reason is that defragmentation is skipped for already tracked connections.
      This is wrong in combination with NAT and ip_conntrack actually had some ifdefs
      to avoid this behaviour when NAT is compiled in.
      The entire "optimization" may seem a bit silly, for now simply restoring the
      lost #ifdef is the easiest solution until we can come up with something better.
      Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
  7. 08 Oct, 2008 1 commit