mirror of
https://github.com/vishvananda/netlink
synced 2025-01-03 21:42:03 +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:
|
case nl.TCA_BPF_ID:
|
||||||
bpf.Id = int(native.Uint32(datum.Value[0:4]))
|
bpf.Id = int(native.Uint32(datum.Value[0:4]))
|
||||||
case nl.TCA_BPF_TAG:
|
case nl.TCA_BPF_TAG:
|
||||||
bpf.Tag = hex.EncodeToString(datum.Value[:len(datum.Value)-1])
|
bpf.Tag = hex.EncodeToString(datum.Value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return detailed, nil
|
return detailed, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user