GithubHelp home page GithubHelp logo

Comments (4)

ldx avatar ldx commented on June 18, 2024

If the test suite does not complain then you're probably fine. Is it only xtables_pending_matches(), or xtables_pending_targets() too missing from libxtables?

from python-iptables.

nosmo avatar nosmo commented on June 18, 2024

Both xtables_pending_matches and xtables_pending_targets are missing from the object file

The test suite returns three failures:

======================================================================
ERROR: test_target_parameters (iptc.test.test_targets.TestTarget)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/python-iptables/iptc/test/test_targets.py", line 45, in test_target_parameters
    t.nfmask = "0xdeadbeef"
  File "/root/python-iptables/iptc/ip4tc.py", line 358, in __setattr__
    self.parse(name.replace("_", "-"), value)
  File "/root/python-iptables/iptc/ip4tc.py", line 277, in parse
    self._parse(argv, inv, entry)
  File "/root/python-iptables/iptc/ip4tc.py", line 596, in _parse
    ct.cast(self._ptrptr, ct.POINTER(ct.c_void_p)))
  File "/root/python-iptables/iptc/xtables.py", line 737, in new
    ret = fn(*args)
  File "/root/python-iptables/iptc/xtables.py", line 987, in parse_target
    self._parse(t, argv, invert, flags, fw, ptr)
  File "/root/python-iptables/iptc/xtables.py", line 939, in _parse
    raise ValueError("invalid value %s" % (argv[1]))
ValueError: invalid value 0xdeadbeef
======================================================================
ERROR: test_insert (iptc.test.test_targets.TestXTClusteripTarget)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/python-iptables/iptc/test/test_targets.py", line 104, in test_insert
    self.target.hashmode = "sourceip"
  File "/root/python-iptables/iptc/ip4tc.py", line 358, in __setattr__
    self.parse(name.replace("_", "-"), value)
  File "/root/python-iptables/iptc/ip4tc.py", line 277, in parse
    self._parse(argv, inv, entry)
  File "/root/python-iptables/iptc/ip4tc.py", line 596, in _parse
    ct.cast(self._ptrptr, ct.POINTER(ct.c_void_p)))
  File "/root/python-iptables/iptc/xtables.py", line 737, in new
    ret = fn(*args)
  File "/root/python-iptables/iptc/xtables.py", line 987, in parse_target
    self._parse(t, argv, invert, flags, fw, ptr)
  File "/root/python-iptables/iptc/xtables.py", line 939, in _parse
    raise ValueError("invalid value %s" % (argv[1]))
ValueError: invalid value sourceip
======================================================================
ERROR: test_mode (iptc.test.test_targets.TestXTClusteripTarget)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/python-iptables/iptc/test/test_targets.py", line 88, in test_mode
    self.target.hashmode = hashmode
  File "/root/python-iptables/iptc/ip4tc.py", line 358, in __setattr__
    self.parse(name.replace("_", "-"), value)
  File "/root/python-iptables/iptc/ip4tc.py", line 277, in parse
    self._parse(argv, inv, entry)
  File "/root/python-iptables/iptc/ip4tc.py", line 596, in _parse
    ct.cast(self._ptrptr, ct.POINTER(ct.c_void_p)))
  File "/root/python-iptables/iptc/xtables.py", line 737, in new
    ret = fn(*args)
  File "/root/python-iptables/iptc/xtables.py", line 987, in parse_target
    self._parse(t, argv, invert, flags, fw, ptr)
  File "/root/python-iptables/iptc/xtables.py", line 939, in _parse
    raise ValueError("invalid value %s" % (argv[1]))
ValueError: invalid value sourceip
----------------------------------------------------------------------

from python-iptables.

ldx avatar ldx commented on June 18, 2024

These should be okay - you just have an old revision of these two extensions, not accepting certain values or lacking features.

from python-iptables.

nosmo avatar nosmo commented on June 18, 2024

Awesome, thanks for clearing that up! :) I'll close this out, thanks for the help.

from python-iptables.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.