From 2a760c20b3b4f59d35c3b0a55142374516e0cafe Mon Sep 17 00:00:00 2001 From: r-caamano Date: Sat, 10 Feb 2024 02:29:43 +0000 Subject: [PATCH] minor refactor to conditional --- src/zfw_tc_ingress.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/zfw_tc_ingress.c b/src/zfw_tc_ingress.c index 14953e8..eb0d991 100644 --- a/src/zfw_tc_ingress.c +++ b/src/zfw_tc_ingress.c @@ -1289,10 +1289,8 @@ int bpf_sk_splice4(struct __sk_buff *skb){ if(dmask == 0x00000000){ if((tracked_key_data->count > 0)){ return TC_ACT_PIPE; - }else{ - if(skb->ingress_ifindex == 1){ - return TC_ACT_OK; - } + }else if(skb->ingress_ifindex == 1){ + return TC_ACT_OK; } } iterate_masks(&dmask, &dexponent);