Skip to content

Commit

Permalink
parse program tag from the entire buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Gui774ume authored and aboch committed Mar 16, 2022
1 parent facc790 commit b112db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b112db3

Please sign in to comment.