fix: Allow TCA_OPTIONS with NLA_F_NESTED and NLA_F_NET_BYTEORDER flag

This commit is contained in:
Nitin Kumar
2025-07-19 21:24:41 +05:30
committed by Alessandro Boch
parent e1e2602148
commit 81eeb7146f

View File

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