Drop the unused fwmark range accessor

This commit is contained in:
Viktor Liu
2026-08-25 18:28:29 +02:00
parent 9cfbb49cac
commit 838640ea2a
2 changed files with 1 additions and 7 deletions

View File

@@ -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 == "" {

View File

@@ -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,