Permalink
Commits on Jan 28, 2013
  1. Remove unused import.

    ldx
    ldx committed Jan 28, 2013
  2. Clean up iptc/xtables related stuff.

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

    ldx
    ldx committed Jan 26, 2013
    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. Setup.py cosmetics.

    ldx
    ldx committed Jan 25, 2013
  2. Use new API.

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

    ldx
    ldx committed Jan 25, 2013
  4. Store pointer to backend buffer.

    ldx
    ldx committed Jan 25, 2013
    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
    this.
  5. Comment cosmetics.

    ldx
    ldx committed Jan 25, 2013
  6. Proper match/target size computation.

    ldx
    ldx committed Jan 25, 2013
    Use xt_align() when computing the size of a target/match backing buffer.
  7. Cosmetics in setup.py.

    ldx
    ldx committed Jan 25, 2013
Commits on Oct 10, 2012
  1. Fix issue where a Rule cannot be added when the match is a chain in

    moises-silva committed Oct 10, 2012
    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
Commits on May 18, 2012
  1. Fix wrap_parse() prototype declaration.

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

    ldx
    ldx committed May 15, 2012
    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
    ldx committed May 13, 2012
  2. Pass ipt_ip to _wrap_save().

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

    ldx
    ldx committed May 13, 2012
  4. Correct wrap_save() parameters.

    ldx
    ldx committed May 13, 2012
  5. Fix ipt_ip() constructor.

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

    ldx
    ldx committed May 12, 2012
    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
    ldx committed May 9, 2012
  2. Revert "Fix parsing of attributes with quotes."

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

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

    ldx ldx
    ldx authored and ldx committed May 8, 2012
    …039f1ec9
    
    fix undefined symbol: iptc_init (libiptc compatibilitly)
Commits on May 7, 2012
Commits on May 4, 2012
  1. Fix parsing of attributes with quotes.

    ldx
    ldx committed May 4, 2012
    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" % (chain.name)
      for rule in chain.rules:
        for match in rule.matches:
          if match.name == "comment":
            print "comment1: %s" % match.comment
    
    Fixes issue #4.
  2. Implement kernel_version.

    ldx
    ldx committed May 4, 2012
    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
    ldx committed May 4, 2012
Commits on Jan 29, 2012
  1. Make Target() accept a standard target.

    ldx
    ldx committed Jan 29, 2012
    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")
            iptc.TABLE_FILTER.create_chain(chain)
    
            rule = iptc.Rule()
            rule.protocol = "tcp"
            rule.src = "127.0.0.1"
    
            target = iptc.Target(rule, "iptc_test_chain")
            rule.target = target
    
            chain = iptc.Chain(iptc.TABLE_FILTER, "INPUT")
            chain.insert_rule(rule)
  2. cleaning and fixing deps

    ncode authored and ldx committed Dec 19, 2011
  3. updated package to work on both debian and ubuntu

    ncode authored and ldx committed Dec 15, 2011
  4. updated package to work on both debian and ubuntu

    ncode authored and ldx committed Dec 15, 2011
  5. added debian package

    ncode authored and ldx committed Dec 13, 2011
Commits on Nov 7, 2011
  1. Fix chain.append_rule()

    alip committed Nov 7, 2011