1. 21 Jan, 2011 15 commits
  2. 20 Jan, 2011 21 commits
  3. 19 Jan, 2011 4 commits
    • Patrick McHardy's avatar
      14f0290b
    • Patrick McHardy's avatar
      netfilter: nf_conntrack: fix lifetime display for disabled connections · f5c88f56
      Patrick McHardy authored
      When no tstamp extension exists, ct_delta_time() returns -1, which is
      then assigned to an u64 and tested for negative values to decide
      whether to display the lifetime. This obviously doesn't work, use
      a s64 and merge the two minor functions into one.
      Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
      f5c88f56
    • Jan Engelhardt's avatar
      netfilter: xtables: connlimit revision 1 · cc4fc022
      Jan Engelhardt authored
      This adds destination address-based selection. The old "inverse"
      member is overloaded (memory-wise) with a new "flags" variable,
      similar to how J.Park did it with xt_string rev 1. Since revision 0
      userspace only sets flag 0x1, no great changes are made to explicitly
      test for different revisions.
      Signed-off-by: default avatarJan Engelhardt <jengelh@medozas.de>
      cc4fc022
    • Pablo Neira Ayuso's avatar
      netfilter: nf_conntrack_tstamp: add flow-based timestamp extension · a992ca2a
      Pablo Neira Ayuso authored
      This patch adds flow-based timestamping for conntracks. This
      conntrack extension is disabled by default. Basically, we use
      two 64-bits variables to store the creation timestamp once the
      conntrack has been confirmed and the other to store the deletion
      time. This extension is disabled by default, to enable it, you
      have to:
      
      echo 1 > /proc/sys/net/netfilter/nf_conntrack_timestamp
      
      This patch allows to save memory for user-space flow-based
      loogers such as ulogd2. In short, ulogd2 does not need to
      keep a hashtable with the conntrack in user-space to know
      when they were created and destroyed, instead we use the
      kernel timestamp. If we want to have a sane IPFIX implementation
      in user-space, this nanosecs resolution timestamps are also
      useful. Other custom user-space applications can benefit from
      this via libnetfilter_conntrack.
      
      This patch modifies the /proc output to display the delta time
      in seconds since the flow start. You can also obtain the
      flow-start date by means of the conntrack-tools.
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
      a992ca2a