Skip to content

Commit

Permalink
Update bpf_linux.go
Browse files Browse the repository at this point in the history
  • Loading branch information
sargun authored and aboch committed Jan 5, 2018
1 parent ad19ca1 commit 7b4c063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bpf_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func loadSimpleBpf(progType BpfProgType, ret uint32) (int, error) {
attr := BPFAttr{
ProgType: uint32(progType),
InsnCnt: uint32(len(insns)),
Insns: uintptr(unsafe.Pointer(&insns)),
Insns: uintptr(unsafe.Pointer(&insns[0])),
License: uintptr(unsafe.Pointer(&license[0])),
}
fd, _, errno := unix.Syscall(unix.SYS_BPF,
Expand Down

0 comments on commit 7b4c063

Please sign in to comment.