diff --git a/README.md b/README.md index 52f2287..ad36939 100644 --- a/README.md +++ b/README.md @@ -137,5 +137,6 @@ and then bridges Ethernet frames between the relay and the first TAP-Windows6 adapter until shutdown. `--virtual-mac` can still override the stored identity for manual testing. On Windows it marks the TAP media connected and reports the driver MAC/MTU before -forwarding frames. Default-route takeover neutralization and automatic TAP -MAC/MTU configuration are not wired yet. +forwarding frames, along with the TAP interface index/LUID. Default-route +takeover neutralization and automatic TAP MAC/MTU configuration are not wired +yet. diff --git a/crates/lanparty-client-win/src/main.rs b/crates/lanparty-client-win/src/main.rs index 012d20d..baca39d 100644 --- a/crates/lanparty-client-win/src/main.rs +++ b/crates/lanparty-client-win/src/main.rs @@ -185,6 +185,9 @@ fn print_pinned_relay_route(route: &PinnedRelayRoute) { fn open_tap_adapter(session: &ClientSession) -> Result { let tap = lanparty_client_tap::open_first_adapter()?; tap.set_media_connected(true)?; + let tap_interface = + lanparty_client_route::interface_identity_from_guid(tap.info().instance_id()) + .context("failed to resolve TAP interface identity")?; let driver_mac = tap.driver_mac()?; let driver_mtu = tap.driver_mtu()?; @@ -198,6 +201,11 @@ fn open_tap_adapter(session: &ClientSession) -> Result