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

Fix interface selection for IPv6-only hosts #4380

Closed
wants to merge 1 commit into from

Conversation

oskar456
Copy link

@oskar456 oskar456 commented May 7, 2024

Instead of considering the full IPv4 routing table, we only look for IPv4 default route and IPv6 routes shorter or equal /8 (for instance 2000::/3). Since the conf.route6 is not ready yet when we first run, we reload conf.ifaces after loading route6.py.

This fixes #4304.

Checklist:

  • If you are new to Scapy: I have checked CONTRIBUTING.md (esp. section submitting-pull-requests)
  • I squashed commits belonging together
  • I added unit tests or explained why they are not relevant
  • I executed the regression tests (using cd test && ./run_tests or tox)
  • If the PR is still not finished, please create a Draft Pull Request

fixes #4304

Instead of considering the full IPv4 routing table, we only look for
IPv4 default route and IPv6 routes shorter or equal /8 (for instance
`2000::/3`). Since the `conf.route6` is not ready yet when we first run,
we reload `conf.ifaces` after loading `route6.py`.

This fixes secdev#4304

Signed-off-by: Ondřej Caletka <ondrej@caletka.cz>
@oskar456
Copy link
Author

oskar456 commented May 7, 2024

I just noticed that the same issue is being fixed already in #4321 so closing this.

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.

No route found for IPv6 destination ff02::1:ff00:1 (no default route?) when running IPv6-only
1 participant