Skip to content
Commits on Jan 28, 2013
  1. Remove unused import.

    ldx committed
  2. Clean up iptc/xtables related stuff.

    ldx committed
    Try to move everything xtables-specific to iptc/
Commits on Jan 26, 2013
  1. Fix a target test.

    ldx committed
    When checking inserted rule, there might be other ones present -
    iterate through all of them to make sure we find ours.
Commits on Jan 25, 2013
  1. cosmetics.

    ldx committed
  2. Use new API.

    ldx committed
    The new API uses optional new callback functions in extensions. Now
    we are also compatible with extensions using x6_parse().
    TODO: move stuff from to, and override parse
    in the Target or the Match class, calling x6_parse() from there.
  3. Clean up indentation: 4 spaces only.

    ldx committed
  4. Store pointer to backend buffer.

    ldx committed
    In a target or match object self._module.t should point to the backing
    buffer (self._ptr). The new API x6_parse() function and extensions expect
  5. Comment cosmetics.

    ldx committed
  6. Proper match/target size computation.

    ldx committed
    Use xt_align() when computing the size of a target/match backing buffer.
  7. Cosmetics in

    ldx committed
Commits on Oct 10, 2012
  1. @moises-silva

    Fix issue where a Rule cannot be added when the match is a chain in

    moises-silva committed
    a table other than TABLE_FILTER
    This creates a new variable TABLES where all the fixed tables
    are listed. The Rule class will then consult all the tables there
    before deciding whether the match is standard or not
Commits on Sep 12, 2012
  1. @sarasola
Commits on May 18, 2012
  1. Fix wrap_parse() prototype declaration.

    ldx committed
Commits on May 15, 2012
  1. RE fix.

    ldx committed
    Now it parses -sctp (--chunk-types), u32 (--u32) and similar save
    outputs correctly. Patch by ximeric.
Commits on May 13, 2012
  1. Comma may also be present in parameters.

    ldx committed
  2. Pass ipt_ip to _wrap_save().

    ldx committed
    A few extensions like multiport expects this parameter.
  3. Make wrapper functions more type-safe.

    ldx committed
  4. Correct wrap_save() parameters.

    ldx committed
  5. Fix ipt_ip() constructor.

    ldx committed
Commits on May 12, 2012
  1. Fix RE parsing in IPTCModule.

    ldx committed
    Strings with dots in them (e.g. IP addresses) had not been parsed
    correctly (still #4). Thanks ximeric for the patch.
Commits on May 9, 2012
  1. Fix #4 parsing of attributes with quotes.

    ldx committed
  2. Revert "Fix parsing of attributes with quotes."

    ldx committed
    This reverts commit 1dcf732.
Commits on May 8, 2012
  1. Merge pull request #8 from freddy436/master

    ldx committed
    add get_counters() for rules
  2. Merge pull request #6 from freddy436/15f05d70a0d2c33778dfd06c971c4f67…

    ldx committed with ldx
    fix undefined symbol: iptc_init (libiptc compatibilitly)
Commits on May 7, 2012
  1. @freddy36

    add get_counters() for rules

    freddy36 committed
  2. @freddy36
Commits on May 4, 2012
  1. Fix parsing of attributes with quotes.

    ldx committed
    Parse match and target parameter values containing quotes with an
    additional RE pattern. Example test case:
    import iptc
    chains = iptc.TABLE_FILTER.chains
    for chain in chains:
      print "Chain: %s" % (
      for rule in chain.rules:
        for match in rule.matches:
          if == "comment":
            print "comment1: %s" % match.comment
    Fixes issue #4.
  2. Implement kernel_version.

    ldx committed
    A few extensions expect kernel_version and get_kernel_version() to
    be available. Implement them in our C library.
  3. Check for NULL extra_opts.

    ldx committed
Commits on Jan 29, 2012
  1. Make Target() accept a standard target.

    ldx committed
    If the name parameter for Target is a chain name than create a
    standard target. E.g.:
            chain = iptc.Chain(iptc.TABLE_FILTER, "iptc_test_chain")
            rule = iptc.Rule()
            rule.protocol = "tcp"
            rule.src = ""
            target = iptc.Target(rule, "iptc_test_chain")
   = target
            chain = iptc.Chain(iptc.TABLE_FILTER, "INPUT")
  2. @ncode

    cleaning and fixing deps

    ncode committed with ldx
  3. @ncode
  4. @ncode
  5. @ncode

    added debian package

    ncode committed with ldx
Commits on Nov 7, 2011
  1. @alip

    Fix chain.append_rule()

    alip committed
Something went wrong with that request. Please try again.