Skip to content

net: preserve live settings across backend restarts - #953

Merged
techomancer merged 1 commit into
techomancer:mainfrom
salvogendut:upstream/network-settings-restart
Dec 6, 2026
Merged

techomancer merged 1 commit into
techomancer:mainfrom
salvogendut:upstream/network-settings-restart

Conversation

@salvogendut

Copy link
Copy Markdown
Contributor

Live subnet, port-forward and PCAP-interface edits could be lost when a peripheral restarted its network backend. For example, removing a forward worked immediately, but resetting the guest could restore that forward from the original configuration.

Retain explicit settings on the shared control and apply them when a renewed link constructs its backend, after the old backend has consumed its update notifications. This includes removing all forwards and returning capture-interface selection to automatic. This follows #902, addressing persistence across restarts rather than rebinding during a live edit.

Validation on Linux:

  • A real backend-restart regression fails on upstream: a removed forwarding rule reappears after restart.
  • cargo +nightly test -p iris --lib net::: all 175 tests pass.
  • cargo +nightly test -p iris --lib --features pcap net::: all 186 tests pass.
  • Regressions cover added and removed forwards through real backend restarts, retained subnet/interface choices, and consumed notifications.

Retain explicit subnet, forwarding and PCAP-interface overrides on the shared control, then apply them when a renewed link creates its backend. Empty forwards and automatic interface selection remain explicit choices after notifications are consumed.

Validation: a real Session restart restores a removed forward on upstream and retains its removal with this fix. Added-forward and configuration regressions also pass. All 175 networking tests pass with default features and all 186 pass with pcap enabled on Linux.
@techomancer
techomancer merged commit fe9aa1d into techomancer:main Dec 6, 2026
9 checks passed
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.

2 participants