consomme: ipv6 address discoverability updates#3701
Open
Brian-Perkins wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the net_consomme device’s IPv6 address discovery and NDP behavior to improve guest IPv6 address “learnability” and to optionally suppress advertising a routable SLAAC prefix on adapters intended for local/loopback-only traffic.
Changes:
- Add
advertise_routable_ipv6to control whether Router Advertisements include Prefix Information for SLAAC-based routable address creation. - Improve guest IPv6 address discovery by learning the guest’s link-local address from traffic and inferring link-local from a learned routable EUI-64-based SLAAC address.
- Add more detailed ICMPv6/NDP tracing and a dedicated
UnsupportedIcmpv6drop reason for non-NDP ICMPv6.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| vm/devices/net/net_consomme/src/lib.rs | Treat UnsupportedIcmpv6 drops as “unknown” TX results in queue stats. |
| vm/devices/net/net_consomme/consomme/src/ndp.rs | Add NDP receive tracing and gate RA prefix advertisement on advertise_routable_ipv6. |
| vm/devices/net/net_consomme/consomme/src/lib.rs | Introduce advertise_routable_ipv6, link-local inference from routable EUI-64, link-local learning from traffic, and UnsupportedIcmpv6. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Consomme updates to expand ipv6 address discovery from the guest.
Adapter can be marked to not advertise routable address availability if traffic on that adapter is only going to be used for local/loopback traffic.
Infer Ipv6 link local address from routable address if the link local address is not yet known and the routable address conforms to a EUI-64 address derived from the guest MAC.
Discover the link local address from sent packets, similar to the routable address.
Additional tracing.