Permalink
Commits on Nov 24, 2013
  1. Cleanup.

    ldx
    ldx committed Nov 24, 2013
  2. Experimental fix for aliased matches.

    ldx
    ldx committed Nov 24, 2013
  3. Start 0.3.0-dev.

    ldx
    ldx committed Nov 24, 2013
  4. Fix #45.

    ldx
    ldx committed Nov 24, 2013
  5. Refactor IPTCModule._save().

    ldx
    ldx committed Nov 24, 2013
Commits on Nov 17, 2013
  1. Update URL.

    ldx
    ldx committed Nov 17, 2013
  2. Update README.

    ldx
    ldx committed Nov 17, 2013
Commits on Nov 16, 2013
  1. Fix stdout closing/reopening around save().

    ldx
    ldx committed Nov 16, 2013
    The save() callback prints rules to stdout in the extension. Make sure
    we close and then reopen not just the low-level fd, but the Python file
    as well around it.
Commits on Nov 10, 2013
  1. Update classifiers in setup.py.

    ldx
    ldx committed Nov 10, 2013
  2. Release v0.2.0.

    ldx
    ldx committed Nov 10, 2013
  3. Generate README.md from RST docs.

    ldx
    ldx committed Nov 10, 2013
  4. Update documentation.

    ldx
    ldx committed Nov 10, 2013
  5. Reset autocommit flag after test.

    ldx
    ldx committed Nov 10, 2013
Commits on Nov 6, 2013
Commits on Oct 29, 2013
  1. Use dict as Table cache.

    ldx
    ldx committed Oct 29, 2013
    For both IPv4 and IPv6, use a dict instead of a weakref cache. This
    makes the cache a permanent one, and avoids the overhead of
    creating/freeing tables too often.
Commits on Sep 19, 2013
Commits on Sep 8, 2013
  1. Release matches after use.

    ldx
    ldx committed Sep 8, 2013
    Matches are allocated dynamically for the same type except the first
    instance. Free them via _Buffer when the python object is
    gced.
  2. Fix memory leak in Target.

    ldx
    ldx committed Sep 8, 2013
    Move freeing of Target._target_buf to another class, thus getting rid of
    __del__() in Target. This enables Python to garbage collect Target
    objects - before this gcing Target was not possible because of the
    circular reference between Rule and Target.
Commits on Sep 7, 2013
  1. Use consistent parameter names.

    ldx
    ldx committed Sep 7, 2013
Commits on Aug 31, 2013
  1. Merge pull request #35 from ericvsmith/master

    ldx committed Aug 31, 2013
    See ldx/python-iptables issue #33
Commits on Aug 28, 2013
  1. Set _xtables._xtables_pending_matches and ._xtables_pending_targets

    ericvsmith committed Aug 28, 2013
    to None if they are not found in libxtables.
Commits on Aug 25, 2013
  1. Merge pull request #34 from neonknight/patch-2

    ldx committed Aug 25, 2013
    Update examples.rst
  2. Update examples.rst

    neonknight committed Aug 25, 2013
    Fixed TABLE_*
Commits on Jul 28, 2013
  1. Refactor Target.__init__().

    ldx
    ldx committed Jul 28, 2013
  2. Refactor Rule6.set_{src,dst}().

    ldx
    ldx committed Jul 28, 2013
  3. Fix inline docs.

    ldx
    ldx committed Jul 28, 2013
  4. Refactor util.find_library().

    ldx
    ldx committed Jul 28, 2013
  5. Refactor a few test cases.

    ldx
    ldx committed Jul 28, 2013
Commits on Jul 22, 2013
  1. Update .gitignore.

    ldx
    ldx committed Jul 22, 2013
  2. Add DNAT test case.

    ldx
    ldx committed Jul 21, 2013
  3. Allocate target backing buffer via libc.

    ldx
    ldx committed Jul 21, 2013
    Since a few target extensions (currently SNAT and DNAT) think it's a
    good idea to manage the memory allocated to xt_entry_target themselves,
    we can't rely on ctypes buffers for backing it. Use malloc()/free() the
    C way instead, so extensions doing a realloc() will keep working.
    
    This fixes #31.
  4. Remove unnecessary abstraction.

    ldx
    ldx committed Jul 21, 2013
Commits on May 11, 2013
  1. Retrieve errno directly from libc.

    ldx
    ldx committed May 11, 2013
    Don't rely on ctypes.get_errno(), as it always seems to return 0. Use
    errno directly from libc.
  2. Fix parsing of the buffer from save().

    ldx
    ldx committed May 11, 2013
    Output from extension->save() can contain quoted strings. This should
    fix #27.
  3. Refactor final_check_{match,target}().

    ldx
    ldx committed May 11, 2013