mirror of
https://github.com/vishvananda/netlink.git
synced 2025-11-01 19:52:34 +08:00
parse program tag from the entire buffer
This commit is contained in:
committed by
Alessandro Boch
parent
facc790515
commit
b112db377d
@@ -859,7 +859,7 @@ func parseBpfData(filter Filter, data []syscall.NetlinkRouteAttr) (bool, error)
|
||||
case nl.TCA_BPF_ID:
|
||||
bpf.Id = int(native.Uint32(datum.Value[0:4]))
|
||||
case nl.TCA_BPF_TAG:
|
||||
bpf.Tag = hex.EncodeToString(datum.Value[:len(datum.Value)-1])
|
||||
bpf.Tag = hex.EncodeToString(datum.Value)
|
||||
}
|
||||
}
|
||||
return detailed, nil
|
||||
|
||||
Reference in New Issue
Block a user