Skip to content

Commit 7406977

Browse files
committed
net/tstun: remove tailscaled_outbound_dropped_packets_total reason=acl metric for now
Updates tailscale#14280 Change-Id: Idff102b3d7650fc9dfbe0c340168806bdf542d76 Signed-off-by: Brad Fitzpatrick <[email protected]>
1 parent 2aac916 commit 7406977

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

net/tstun/wrap.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -876,9 +876,10 @@ func (t *Wrapper) filterPacketOutboundToWireGuard(p *packet.Parsed, pc *peerConf
876876

877877
if filt.RunOut(p, t.filterFlags) != filter.Accept {
878878
metricPacketOutDropFilter.Add(1)
879-
t.metrics.outboundDroppedPacketsTotal.Add(usermetric.DropLabels{
880-
Reason: usermetric.ReasonACL,
881-
}, 1)
879+
// TODO(#14280): increment a t.metrics.outboundDroppedPacketsTotal here
880+
// once we figure out & document what labels to use for multicast,
881+
// link-local-unicast, IP fragments, etc. But they're not
882+
// usermetric.ReasonACL.
882883
return filter.Drop, gro
883884
}
884885

net/tstun/wrap_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ func TestFilter(t *testing.T) {
453453

454454
assertMetricPackets(t, "inACL", 3, metricInboundDroppedPacketsACL)
455455
assertMetricPackets(t, "inError", 0, metricInboundDroppedPacketsErr)
456-
assertMetricPackets(t, "outACL", 1, metricOutboundDroppedPacketsACL)
456+
assertMetricPackets(t, "outACL", 0, metricOutboundDroppedPacketsACL)
457457
}
458458

459459
func assertMetricPackets(t *testing.T, metricName string, want, got int64) {

0 commit comments

Comments
 (0)