parse program tag from the entire buffer

This commit is contained in:
Gui774ume 2022-03-16 15:47:59 +01:00 committed by Alessandro Boch
parent facc790515
commit b112db377d

View File

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