File tree 1 file changed +8
-1
lines changed
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)
347
347
{
348
348
FrangAcc * ra = frang_acc_from_sk (sk );
349
349
350
+ if (unlikely (!sock_flag (sk , SOCK_TEMPESTA )))
351
+ return ;
352
+
350
353
if (ra == NULL )
351
354
return ;
352
355
@@ -1744,7 +1747,8 @@ tfw_classifier_cleanup_inport(void)
1744
1747
static int
1745
1748
tfw_classify_conn_estab (struct sock * sk , struct sk_buff * skb )
1746
1749
{
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 ))
1748
1752
return frang_conn_new (sk , skb );
1749
1753
1750
1754
return T_OK ;
@@ -1757,6 +1761,9 @@ tfw_classify_conn_estab(struct sock *sk, struct sk_buff *skb)
1757
1761
static int
1758
1762
tfw_classify_tcp (struct sock * sk , struct sk_buff * skb )
1759
1763
{
1764
+ /* Just a hint. Be careful calling not only for Tempesta's socket. */
1765
+ if (!sock_flag (sk , SOCK_TEMPESTA ))
1766
+ return T_OK ;
1760
1767
return T_OK ;
1761
1768
}
1762
1769
You can’t perform that action at this time.
0 commit comments