From 8005624fac2179343cb9d707c7b30dde298a250d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Sun, 19 Jan 2020 02:17:14 +0100 Subject: [PATCH] less fields required for MAP_CREATE --- GetRuntimeAddresses/ebpf/ebpf.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/GetRuntimeAddresses/ebpf/ebpf.go b/GetRuntimeAddresses/ebpf/ebpf.go index 0f77de7..c80cd49 100644 --- a/GetRuntimeAddresses/ebpf/ebpf.go +++ b/GetRuntimeAddresses/ebpf/ebpf.go @@ -108,13 +108,10 @@ func CreateMap() (MapFD, error) { */ create_attr := struct { - map_type uint32 - key_size uint32 - value_size uint32 - max_entries uint32 - map_flags uint32 - inner_map_fd uint32 - // minimum of required fields + map_type uint32 + key_size uint32 + value_size uint32 + max_entries uint32 }{ map_type: uint32(BPF_MAP_TYPE_HASH), key_size: 4,