Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion fw/http_limits.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ tfw_classify_conn_close(struct sock *sk)
{
FrangAcc *ra = frang_acc_from_sk(sk);

if (unlikely(!sock_flag(sk, SOCK_TEMPESTA)))
return;

if(ra == NULL)
return;

Expand Down Expand Up @@ -1744,7 +1747,8 @@ tfw_classifier_cleanup_inport(void)
static int
tfw_classify_conn_estab(struct sock *sk, struct sk_buff *skb)
{
if (test_bit(tfw_addr_get_sk_sport(sk), tfw_inports))
if (test_bit(tfw_addr_get_sk_sport(sk), tfw_inports)
&& sock_flag(sk, SOCK_TEMPESTA))
return frang_conn_new(sk, skb);

return T_OK;
Expand All @@ -1757,6 +1761,9 @@ tfw_classify_conn_estab(struct sock *sk, struct sk_buff *skb)
static int
tfw_classify_tcp(struct sock *sk, struct sk_buff *skb)
{
/* Just a hint. Be careful calling not only for Tempesta's socket. */
if (!sock_flag(sk, SOCK_TEMPESTA))
return T_OK;
return T_OK;
}

Expand Down