Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sc07kvm committed May 11, 2024
1 parent 1216f2b commit a724587
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion selftest/prog-run/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ func main() {
log.Fatalf("Failed to get prog: %v", err)
}

dataIn := make([]byte, 16)
binary.LittleEndian.PutUint32(dataIn, 0xdeadbeef)
opts := bpf.RunOpts{
DataIn: binary.LittleEndian.AppendUint32(make([]byte, 0, 16), 0xdeadbeef),
DataIn: dataIn,
DataSizeIn: 16,
DataOut: make([]byte, 32),
DataSizeOut: 32,
Expand Down

0 comments on commit a724587

Please sign in to comment.