Skip to content

Commit cde65db

Browse files
authored
wgengine/magicsock: add clientmetric for Peer Relay challenge reception (tailscale#16834)
Updates tailscale/corp#30527 Signed-off-by: Jordan Whited <[email protected]>
1 parent 4fa27db commit cde65db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wgengine/magicsock/magicsock.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2273,6 +2273,7 @@ func (c *Conn) handleDiscoMessage(msg []byte, src epAddr, shouldBeRelayHandshake
22732273
return
22742274
}
22752275
c.relayManager.handleRxDiscoMsg(c, challenge, key.NodePublic{}, di.discoKey, src)
2276+
metricRecvDiscoBindUDPRelayEndpointChallenge.Add(1)
22762277
return
22772278
}
22782279

@@ -4008,6 +4009,7 @@ var (
40084009
metricRecvDiscoCallMeMaybeViaBadNode = clientmetric.NewCounter("magicsock_disco_recv_callmemaybevia_bad_node")
40094010
metricRecvDiscoCallMeMaybeBadDisco = clientmetric.NewCounter("magicsock_disco_recv_callmemaybe_bad_disco")
40104011
metricRecvDiscoCallMeMaybeViaBadDisco = clientmetric.NewCounter("magicsock_disco_recv_callmemaybevia_bad_disco")
4012+
metricRecvDiscoBindUDPRelayEndpointChallenge = clientmetric.NewCounter("magicsock_disco_recv_bind_udp_relay_endpoint_challenge")
40114013
metricRecvDiscoAllocUDPRelayEndpointRequest = clientmetric.NewCounter("magicsock_disco_recv_alloc_udp_relay_endpoint_request")
40124014
metricRecvDiscoAllocUDPRelayEndpointRequestBadDisco = clientmetric.NewCounter("magicsock_disco_recv_alloc_udp_relay_endpoint_request_bad_disco")
40134015
metricRecvDiscoAllocUDPRelayEndpointResponseBadDisco = clientmetric.NewCounter("magicsock_disco_recv_alloc_udp_relay_endpoint_response_bad_disco")

0 commit comments

Comments
 (0)