Skip to content

fix: report distinct client/server tunnel addresses for VXLAN and VLAN - #155

Merged
GyulyVGC merged 1 commit into
NullNet-ai:mainfrom
antoncxx:fix/vxlan-address-visualization
Aug 12, 2026
Merged

fix: report distinct client/server tunnel addresses for VXLAN and VLAN#155
GyulyVGC merged 1 commit into
NullNet-ai:mainfrom
antoncxx:fix/vxlan-address-visualization

Conversation

@antoncxx

@antoncxx antoncxx commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

vlan_setup and vxlan_setup are each called twice per tunnel (once per side, distinguished by remote_server_name.is_some()), but both always returned the server-side address regardless of which side the call represented. That made ClientInfo.client_net == server_net by construction, so Sessions/Topology/Dashboard showed identical client and server addresses for every VXLAN and VLAN session.

Return the already-computed per-side local address (local_veth / local_net_ip) instead. host_mapping is unchanged, since it's meant to always resolve to the server's address.

Added regression tests in net.rs asserting the client-side and server-side setup calls return distinct addresses; verified they fail against the pre-fix code.

Fixes #134

vlan_setup and vxlan_setup are each called twice per tunnel (once per
side, distinguished by remote_server_name.is_some()), but both always
returned the server-side address regardless of which side the call
represented. That made ClientInfo.client_net == server_net by
construction, so Sessions/Topology/Dashboard showed identical client
and server addresses for every VXLAN and VLAN session.

Return the already-computed per-side local address (local_veth /
local_net_ip) instead. host_mapping is unchanged, since it's meant to
always resolve to the server's address.

Added regression tests in net.rs asserting the client-side and
server-side setup calls return distinct addresses; verified they fail
against the pre-fix code.
@antoncxx antoncxx self-assigned this Aug 11, 2026
@antoncxx antoncxx added the bug Something isn't working label Aug 11, 2026
@antoncxx
antoncxx requested a review from GyulyVGC August 11, 2026 22:07
@GyulyVGC
GyulyVGC merged commit 4ae648d into NullNet-ai:main Aug 12, 2026
4 checks passed
@antoncxx
antoncxx deleted the fix/vxlan-address-visualization branch August 12, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI: client and server IP addresses of a VXLAN are reported equal

2 participants