Permalink
Commits on Feb 7, 2013
  1. Add Rule6 test suite.

    ldx committed Feb 7, 2013
  2. Fix Rule6 src/dst manipulation.

    ldx committed Feb 7, 2013
  3. Override property Rule6.tables.

    ldx committed Feb 7, 2013
  4. Override Rule6.__eq__().

    ldx committed Feb 7, 2013
  5. Add property Rule.tables.

    ldx committed Feb 7, 2013
  6. Add new test suite for Table6.

    ldx committed Feb 7, 2013
Commits on Feb 6, 2013
  1. Import IPv6 classes automatically.

    ldx committed Feb 6, 2013
  2. Add ip6tables support.

    ldx committed Feb 6, 2013
  3. Implement helper methods for Rule.

    ldx committed Feb 6, 2013
    These hide the entry.ip instance, so an IPv6 subclass can override
    these methods.
  4. Don't use global xtables object.

    ldx committed Feb 6, 2013
    Instead instantiate an xtables instance in every Match/Target. We use
    singleton xtables objects anyways.
  5. Implement xtables.__repr__().

    ldx committed Feb 6, 2013
  6. Use singleton xtable()s.

    ldx committed Feb 6, 2013
  7. Move kernel loading stuff to util.py.

    ldx committed Feb 6, 2013
  8. Add method Rule._save().

    ldx committed Feb 6, 2013
    Now we call Rule._save() from Rule.save() to be able to simply override
    this method in the IPv6 subclass. The only change is that save() passes
    the ip attribute from the entry to _save().
  9. Use xt_align() instead of ipt_align().

    ldx committed Feb 6, 2013
  10. Rebuild docs.

    ldx committed Feb 6, 2013
  11. Don't use revision in examples.

    ldx committed Feb 6, 2013
  12. Use latest revision of extension by default.

    ldx committed Feb 6, 2013
    Now we will use the revision found by xtables_find_match() or
    xtables_find_target(). Specifying the revision should now only be
    necessary if the iptables libraries and the kernel are not in sync.
  13. Fix handling of flags.

    ldx committed Feb 6, 2013
    Now we always pass 0 as flags for extension callbacks, and just store
    the result back into mflags/tflags. This way in the end we should get
    the correct flags map, that can be passed to e.g. final_check().
    
    Should fix #16.
  14. Fix exception format string parameters.

    ldx committed Feb 6, 2013
  15. Make sure something is written to stdout.

    ldx committed Feb 6, 2013
    When calling the save() callback of an extension, make sure at least
    a new line is written to stdout - if the extension has had no parameters
    passed to it, then it might have caused python-iptables to hang, waiting
    for input on the pipe.
Commits on Feb 5, 2013
  1. Rebuild docs.

    ldx committed Feb 5, 2013
  2. Fix formatting in examples.rst.

    ldx committed Feb 5, 2013
  3. Rebuild docs.

    ldx committed Feb 5, 2013
  4. Update docs examples section.

    ldx committed Feb 5, 2013
  5. Add create_match() and create_target() to Rule.

    ldx committed Feb 5, 2013
    Now one can simply create a match or target via these new methods, e.g.
    
        >>> rule = Rule()
        >>> rule.create_match("tcp")
        >>> rule.create_target("DROP")
    
    These are also added to the rule used to create them.
  6. Reset errno to 0 after retrieving it.

    ldx committed Feb 5, 2013
Commits on Feb 2, 2013
  1. Add new match test.

    ldx committed Feb 2, 2013
  2. Make sure we align struct sizes.

    ldx committed Feb 2, 2013
  3. Fix exception string formatting.

    ldx committed Feb 2, 2013
  4. Fix old API parse() flags type.

    ldx committed Feb 2, 2013