mirror of
https://github.com/vishvananda/netlink.git
synced 2025-09-26 11:51:11 +08:00
fix: Allow TCA_OPTIONS with NLA_F_NESTED and NLA_F_NET_BYTEORDER flag
This commit is contained in:

committed by
Alessandro Boch

parent
e1e2602148
commit
81eeb7146f
@@ -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 {
|
||||
|
Reference in New Issue
Block a user