Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot use protocol "all" #327

Open
patman-cp opened this issue Aug 23, 2022 · 0 comments
Open

cannot use protocol "all" #327

patman-cp opened this issue Aug 23, 2022 · 0 comments

Comments

@patman-cp
Copy link

patman-cp commented Aug 23, 2022

Using protocol "all" causes a failure, with an error of "ValueError: invalid protocol all".

The problem is that in iptc/ip4tc.py the value of socket.IPPROTO_IP is 0, so the setting of protocols in that file of 0 to "all" is overwritten by socket.IPPROTO_IP and the value all will not match the checks in set_protocol.

This in iptc/ip4tc.py:

    protocols = {0: "all",
                socket.IPPROTO_AH: "ah",
...
                socket.IPPROTO_IP: "ip",
...
                }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant