Update bpf_linux.go

This commit is contained in:
Sargun Dhillon 2018-01-02 10:36:48 -08:00 committed by Alessandro Boch
parent ad19ca1a4c
commit 7b4c06360e
1 changed files with 1 additions and 1 deletions

View File

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