Skip to content

feat(proto): extract cross-platform yip-proto crate and support dynamic control reload - #258

Open
vxfemboy wants to merge 8 commits into
mainfrom
feat/proto-crate-and-control-reload
Open

vxfemboy wants to merge 8 commits into
mainfrom
feat/proto-crate-and-control-reload

Conversation

@vxfemboy

Copy link
Copy Markdown
Member

Summary

This pull request implements Issue #199 and Issue #196:

  1. Shared OS-Agnostic Protocol Crate (crates/yip-proto, refactor(proto): extract cross-platform IPC and protocol types into an OS-agnostic crate #199):
    • Extracted cross-platform, dependency-light protocol data structures from bin/yipd into crates/yip-proto.
    • Includes ControlCmd, ControlResponse, DaemonConfig, PeerConfigEntry, PeerStats, PeerState, NetworkTicket, FecPreset, FecConfig, DaitaPreset, DaitaConfig, SplitMode, SplitTunnelConfig, XdpMode, and pure CIDR helpers.
    • Extracts self-certifying IPv6 overlay address calculation (derive_overlay_ipv6, node_addr, verify_addr) using BLAKE3-KDF without socket or platform dependencies.
    • Re-exports protocol types in bin/yipd preserving backward compatibility.
  2. Dynamic Configuration Reload and Inspection (bin/yipd, feat(control): support dynamic reload and get_config commands over control socket #196):
    • Added ControlCmd::Reload and ControlCmd::GetConfig to the UNIX control socket interface.
    • Implemented reload_config in PeerManager: re-reads configuration from file, updates dynamic endpoints, aliases, and parameters (Reed-Solomon FEC, DAITA, MTU) without tearing down the TUN interface device, while preserving active cryptographic sessions and epochs for peers with matching public keys.
    • Added CLI subcommands yip reload [config_path] and yip config [get] [--json] in bin/yipd/src/main.rs.

Closes #199
Closes #196

Quality Gates Passed

  • All unit, integration, and netns tests passing (cargo test --workspace).
  • Clean formatting (cargo fmt --all -- --check).
  • Zero clippy warnings (cargo clippy --workspace --all-targets -- -D warnings).
  • Zero unused dependencies (cargo shear).
  • Security and license audit clean (cargo deny check).
  • Mutation testing executed with 0 viable misses on added protocol logic.
  • Strictly zero emojis across all code, tests, docs, and commit messages.

@vxfemboy
vxfemboy temporarily deployed to benchmark-approval November 18, 2026 00:25 — with GitHub Actions Inactive
@vxfemboy
vxfemboy temporarily deployed to benchmark-approval November 18, 2026 00:25 — with GitHub Actions Inactive
@vxfemboy
vxfemboy temporarily deployed to benchmark-approval November 18, 2026 00:56 — with GitHub Actions Inactive
@vxfemboy
vxfemboy temporarily deployed to benchmark-approval November 18, 2026 01:58 — with GitHub Actions Inactive
@vxfemboy
vxfemboy deployed to benchmark-approval November 18, 2026 02:14 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
benchmark-approval — 6f68a54b Deployed Nov 18, 2026 by vxfemboy via iperf-netem-bench #200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant