mirror of
https://github.com/vishvananda/netlink
synced 2024-12-31 19:22:02 +00:00
parse program tag from the entire buffer
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user