mirror of
https://github.com/netbirdio/netbird.git
synced 2026-08-26 09:31:30 +02:00
Drop the unused fwmark range accessor
This commit is contained in:
@@ -72,12 +72,6 @@ func IsDataPlaneMark(fwmark uint32) bool {
|
||||
return fwmark >= DataPlaneMarkLower && fwmark <= DataPlaneMarkUpper
|
||||
}
|
||||
|
||||
// FwmarkRange returns the first and last mark of the range in use, for logging
|
||||
// and for reporting the configuration back to the user.
|
||||
func FwmarkRange() (uint32, uint32) {
|
||||
return fwmarkBase, fwmarkBase | fwmarkOffsetMask
|
||||
}
|
||||
|
||||
func loadFwmarkBase() uint32 {
|
||||
val := os.Getenv(envFwmarkBase)
|
||||
if val == "" {
|
||||
|
||||
@@ -47,7 +47,7 @@ func TestParseFwmarkBase(t *testing.T) {
|
||||
// The marks have to stay inside the range the base defines, otherwise a host
|
||||
// that moved the range to dodge a collision would still emit the old values.
|
||||
func TestMarksStayWithinTheRange(t *testing.T) {
|
||||
lower, upper := FwmarkRange()
|
||||
lower, upper := fwmarkBase, fwmarkBase|fwmarkOffsetMask
|
||||
|
||||
marks := map[string]uint32{
|
||||
"ControlPlaneMark": ControlPlaneMark,
|
||||
|
||||
Reference in New Issue
Block a user