File: 0002-Do-not-set-default-traffic-class.patch

package info (click to toggle)
golang-github-prometheus-community-pro-bing 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 316 kB
  • sloc: makefile: 30
file content (24 lines) | stat: -rw-r--r-- 746 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Daniel Swarbrick <dswarbrick@debian.org>
Date: Sun, 1 Dec 2024 22:05:35 +0100
Subject: Do not set default traffic class

Do not set default traffic class 192 (DSCP CS6) in pinger, as it seems
to result in flaky responses with some devices.

Bug: https://github.com/prometheus-community/pro-bing/issues/134
---
 ping.go | 1 -
 1 file changed, 1 deletion(-)

diff --git a/ping.go b/ping.go
index c12f2cb..dc38fe4 100644
--- a/ping.go
+++ b/ping.go
@@ -116,7 +116,6 @@ func New(addr string) *Pinger {
 		protocol:          "udp",
 		awaitingSequences: firstSequence,
 		TTL:               64,
-		tclass:            192, // CS6 (network control)
 		logger:            StdLogger{Logger: log.New(log.Writer(), log.Prefix(), log.Flags())},
 	}
 }