From 7b4c06360e5da316aaf706981178b60895047b30 Mon Sep 17 00:00:00 2001 From: Sargun Dhillon Date: Tue, 2 Jan 2018 10:36:48 -0800 Subject: [PATCH] Update bpf_linux.go --- bpf_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpf_linux.go b/bpf_linux.go index c6152cd..6631626 100644 --- a/bpf_linux.go +++ b/bpf_linux.go @@ -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,