From 81eeb7146fd773e46b35fe8afea8b5a969960f45 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Sat, 19 Jul 2025 21:24:41 +0530 Subject: [PATCH] fix: Allow TCA_OPTIONS with NLA_F_NESTED and NLA_F_NET_BYTEORDER flag --- filter_linux.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/filter_linux.go b/filter_linux.go index 07e7782..fb9bab6 100644 --- a/filter_linux.go +++ b/filter_linux.go @@ -505,7 +505,8 @@ func (h *Handle) FilterList(link Link, parent uint32) ([]Filter, error) { filterType := "" detailed := false for _, attr := range attrs { - switch attr.Attr.Type { + attrType := attr.Attr.Type & nl.NLA_TYPE_MASK + switch attrType { case nl.TCA_KIND: filterType = string(attr.Value[:len(attr.Value)-1]) switch filterType {