From 7431dcc9efc2d389bedb46924f77690b3db4a09a Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Mon, 22 May 2023 12:45:34 +0800 Subject: [PATCH] Revert "shortcut-fe: use tcp_be_liberal (#11188)" This reverts commit 258cc2154ee9e15712791b47b35db2c033b8dfca. --- package/lean/shortcut-fe/fast-classifier/src/fast-classifier.c | 2 +- package/lean/shortcut-fe/shortcut-fe/src/sfe_cm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/lean/shortcut-fe/fast-classifier/src/fast-classifier.c b/package/lean/shortcut-fe/fast-classifier/src/fast-classifier.c index 415c6f584..944dfae38 100644 --- a/package/lean/shortcut-fe/fast-classifier/src/fast-classifier.c +++ b/package/lean/shortcut-fe/fast-classifier/src/fast-classifier.c @@ -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_be_liberal) + if ((tn&&tn->tcp_no_window_check) #else if (nf_ct_tcp_no_window_check #endif diff --git a/package/lean/shortcut-fe/shortcut-fe/src/sfe_cm.c b/package/lean/shortcut-fe/shortcut-fe/src/sfe_cm.c index 8946b837c..2d3f79a04 100644 --- a/package/lean/shortcut-fe/shortcut-fe/src/sfe_cm.c +++ b/package/lean/shortcut-fe/shortcut-fe/src/sfe_cm.c @@ -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_be_liberal) + if ((tn&&tn->tcp_no_window_check) #else if (nf_ct_tcp_no_window_check #endif