Skip to content

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 <[email protected]>
@oskar456 oskar456 force-pushed the fix_get_working_if branch from 8424b89 to f655438 Compare May 7, 2024 09:09
@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