Skip to content

Per-host network adapter binding

Latest

Choose a tag to compare

@megablue megablue released this 12 Oct 13:33
· 3 commits to split/renderer-process since this release

Per-host network adapter binding

  • New crates/core/src/adapters.rs: GetAdaptersAddresses through the module's own extern "system" block, so core still takes no GUI dependency and no new crate.
  • probe.rs drops ping-rs entirely for its own FFI: IcmpCreateFile/IcmpSendEcho2Ex (with SourceAddress) for ICMP and a TcpSocket::bind before connect for TCP.
  • Storage: TargetConfig.adapter (absent = Automatic) with the usual serde/migration, and a "Network adapter" ComboBox in the host editor.
  • Behavior: a bound probe leaves from that adapter's current IPv4; a saved adapter that isn't attached fails the sample rather than silently falling back to another interface.

The sample cursor — the visual fixes from this session's thread.

  • The empty band above the grid is gone: the box no longer grows at the ceiling end for the cursor (short = graphHeightPx·dpi + bottom_room), the plot's top is the 2px stroke pad, and the grid and lines now fill the box instead of leaving a bare 13px strip.
  • The bounce parks whole: its rest is the box's top edge — topmost pixel flush — where it used to hang half out above the grid, and the shake became a one-sided decaying dip into the graph.
  • The gap now reads against the graph, not the box: the cursor's base is anchored to the axis's end, so the rim's outer edge sits 2px inside the grid's last column; the line's newest pixels run on past the cursor's flat side.
  • The box hugs the graph again: the leading reserve stopped being the cursor's own band and became stroke_pad of the line's width — the same pad every other edge keeps — so 314×136 at 125% DPI, with the time axis keeping its configured length.