File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -347,6 +347,9 @@ tfw_classify_conn_close(struct sock *sk)
347347{
348348 FrangAcc * ra = frang_acc_from_sk (sk );
349349
350+ if (unlikely (!sock_flag (sk , SOCK_TEMPESTA )))
351+ return ;
352+
350353 if (ra == NULL )
351354 return ;
352355
@@ -1744,7 +1747,8 @@ tfw_classifier_cleanup_inport(void)
17441747static int
17451748tfw_classify_conn_estab (struct sock * sk , struct sk_buff * skb )
17461749{
1747- if (test_bit (tfw_addr_get_sk_sport (sk ), tfw_inports ))
1750+ if (test_bit (tfw_addr_get_sk_sport (sk ), tfw_inports )
1751+ && sock_flag (sk , SOCK_TEMPESTA ))
17481752 return frang_conn_new (sk , skb );
17491753
17501754 return T_OK ;
@@ -1757,6 +1761,9 @@ tfw_classify_conn_estab(struct sock *sk, struct sk_buff *skb)
17571761static int
17581762tfw_classify_tcp (struct sock * sk , struct sk_buff * skb )
17591763{
1764+ /* Just a hint. Be careful calling not only for Tempesta's socket. */
1765+ if (!sock_flag (sk , SOCK_TEMPESTA ))
1766+ return T_OK ;
17601767 return T_OK ;
17611768}
17621769
You can’t perform that action at this time.
0 commit comments