Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
r-caamano committed Apr 16, 2024
1 parent 72ae418 commit de61d6e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/zfw_tc_ingress.c
Expand Up @@ -956,15 +956,15 @@ int bpf_sk_splice(struct __sk_buff *skb){
event.proto = IPPROTO_TCP;
send_event(&event);
}
if(tcph->syn){
if(tcph->syn){
inc_syn_count(skb->ifindex);
}
if(local_diag->ddos_filtering){
if(get_ddos_list(tuple->ipv4.saddr)){
return TC_ACT_OK;
}
if(local_diag->ddos_filtering){
if(get_ddos_list(tuple->ipv4.saddr)){
return TC_ACT_OK;
}else{
return TC_ACT_SHOT;
}
return TC_ACT_SHOT;
}
}
}
}
Expand Down

0 comments on commit de61d6e

Please sign in to comment.