Repository navigation
Conversation
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.
Affected repo & language: modem-stack · TypeScript
What
A cellular policy already carries an IP family, but the NetworkManager profile writer ignores it, so a caller asking for IPv6-only service silently gets the default. This makes the requested family reach the saved profile.
ipv4,ipv6andipv4v6now set the saved profile's IP methods.ipv4v6default stay compatible, and low-level profile calls can still leave the methods alone by omitting the family.Why
IPv6-only carriers need the modem to come up IPv6-only, and that request currently goes nowhere. Honouring it is the first step; full support still needs IPv6-aware consumers and CLAT for IPv4 hotspot devices. CeraUI forces IPv4 today with
ipv6.method ignore, and those profiles read back here as unknown.The existing NetworkManager port writes both methods together and reads the saved settings back. Saving a profile doesn't reconnect an active modem.
Your call: for an
ipv4request, shouldipv6.methodbeignoreto match CeraUI, or staydisabledto switch IPv6 off on the interface?How to verify
Commands and validation
bun test --max-concurrency 1 control/src/backend/nm-ip-family.test.ts cli/src/policy-family.test.ts: 14 pass, 0 fail. Covers create/update mappings, unchanged low-level argv on omission, unknown readback without drift, known mismatch convergence, and saved settings changed independently of the request. The fake has its own writer and readback parser.dbus-run-session -- bun test --max-concurrency 1: 1,506 pass, 0 fail, including FM350 coverage.bun run lintandbun run typecheck: pass.bun run --cwd control verify:tarball: pass, 412 entries.bun run --cwd control verify:consumers: pass with Node 26.Tests ran with Bun 1.4.3. No live modem or SIM test is claimed.
Risks
Behavior changes and limits
ipv4v6; CLI JSON omission converts to that default. Low-level port omission still writes no methods.GsmProfile.ipFamilyasappliedIpFamilyto enable known-mismatch reconciliation. Unknown readback does not prove the family was applied.auto/ignore, manual settings, and disabled/disabled stay unknown.ipv6.method disabledrequires NetworkManager 1.20 or newer. Dual stack requests both automatic methods without requiring both to succeed.may-fail, activation policy and ModemManager bearer operations are unchanged. FM350-GL support is retained.Rollback: revert the profile-family changes.
Checklist