shortcut-fe: use tcp_be_liberal (#11188)

This commit is contained in:
zxlhhyccc 2023-05-07 23:50:45 +08:00 committed by GitHub
parent 4fbb5202f4
commit 258cc2154e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -468,7 +468,7 @@ static int fast_classifier_update_protocol(struct sfe_connection_create *p_sic,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)
net = nf_ct_net(ct);
tn = nf_tcp_pernet(net);
if ((tn&&tn->tcp_no_window_check)
if ((tn&&tn->tcp_be_liberal)
#else
if (nf_ct_tcp_no_window_check
#endif

View File

@ -504,7 +504,7 @@ static unsigned int sfe_cm_post_routing(struct sk_buff *skb, int is_v4)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)
net = nf_ct_net(ct);
tn = nf_tcp_pernet(net);
if ((tn&&tn->tcp_no_window_check)
if ((tn&&tn->tcp_be_liberal)
#else
if (nf_ct_tcp_no_window_check
#endif