From 0b535579c54d6e1dc1267ea93197cf64709c303a Mon Sep 17 00:00:00 2001 From: r-caamano Date: Tue, 12 Dec 2023 18:25:28 +0000 Subject: [PATCH] removed extraneous syscall from add_if_index() --- src/zfw.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/zfw.c b/src/zfw.c index 2d8b6f9..91142fb 100644 --- a/src/zfw.c +++ b/src/zfw.c @@ -1363,7 +1363,6 @@ int add_if_index(struct interface intf) if_map.key = (uint64_t)&intf.index; if_map.flags = BPF_ANY; if_map.value = (uint64_t)&o_ifip4; - syscall(__NR_bpf, BPF_MAP_LOOKUP_ELEM, &if_map, sizeof(if_map)); for(int x = 0; x < MAX_ADDRESSES; x++){ if(x < intf.addr_count){ o_ifip4.ipaddr[x] = intf.addresses[x];