Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Commit

Permalink
minor refactor to conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
r-caamano committed Feb 10, 2024
1 parent 5276a21 commit 2a760c2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/zfw_tc_ingress.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2a760c2

Please sign in to comment.