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

Add goto support -- fixed! #200

Merged
merged 4 commits into from
Jan 3, 2017
Merged

Add goto support -- fixed! #200

merged 4 commits into from
Jan 3, 2017

Conversation

pepoluan
Copy link
Contributor

So. As before: This is a fix for #196 ; patch allows module to recognize "goto" (-g) targets and create "goto" targets.

This one had been tested with IPv4 and IPv6.

Note: Unexpected behavior might be encountered if goto=True is specified with a 'standard' target (e.g., ACCEPT, DROP, etc.)

Modify .hgignore to exclude PyCharm working dirs.
In general, changes made are:
* Change constructor of Target to allow 'goto' option
* Change create_target method of Rule, same purpose
* Change how IPT_F_FRAG gets set in rule.entry.ip
So create_target()'s' goto parameter did not get passed to Target()... fixed.
Now properly use get_ip() and introspection to ensure compatibility with ip6tc, and future. (IPv8, anyone?)
@coveralls
Copy link

coveralls commented Dec 15, 2016

Coverage Status

Coverage decreased (-14.6%) to 45.163% when pulling d3df22b on pepoluan:add-goto-support into edd1623 on ldx:master.

@ldx
Copy link
Owner

ldx commented Jan 3, 2017

LGTM, thanks!

@ldx ldx merged commit 838c875 into ldx:master Jan 3, 2017
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

Successfully merging this pull request may close these issues.

3 participants