Skip to content

Commit 58fa6f3

Browse files
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: Update RTL8125 Driver to 9.009.02-1 (coolsnowwolf#9781) n2n: dynamic link to libcap (coolsnowwolf#9779) Update fast-classifier.c (coolsnowwolf#9777)
2 parents 8c8f578 + 75cf686 commit 58fa6f3

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

package/lean/n2n/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ define Package/n2n/template
2626
SUBMENU:=VPN
2727
TITLE:=N2N Peer-to-peer VPN
2828
URL:=http://www.ntop.org/n2n
29-
DEPENDS:=+libcap +libopenssl +libpthread +libzstd
29+
DEPENDS:=+libopenssl +libpthread +libzstd
3030
endef
3131

3232
define Package/n2n
3333
$(call Package/n2n/template)
34-
DEPENDS+=+kmod-tun +resolveip
34+
DEPENDS+=+libcap +kmod-tun +resolveip
3535
endef
3636

3737
define Package/n2n/description
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/CMakeLists.txt
2+
+++ b/CMakeLists.txt
3+
@@ -185,7 +185,7 @@ if(N2N_OPTION_USE_PCAPLIB AND (NOT DEFIN
4+
# Linux Capabilities
5+
find_library(CAP_LIB cap)
6+
if(CAP_LIB)
7+
- target_link_libraries(edge cap.a)
8+
+ target_link_libraries(edge cap)
9+
set(CMAKE_REQUIRED_LIBRARIES ${CAP_LIB})
10+
ADD_DEFINITIONS("-DHAVE_LIBCAP")
11+
endif()

package/lean/r8125/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ include $(TOPDIR)/rules.mk
77
include $(INCLUDE_DIR)/kernel.mk
88

99
PKG_NAME:=r8125
10-
PKG_VERSION:=9.009.01-1
10+
PKG_VERSION:=9.009.02-1
1111
PKG_RELEASE:=$(AUTORELEASE)
1212

1313
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
1414
PKG_SOURCE_URL:=https://codeload.github.com/awesometic/realtek-r8125-dkms/tar.gz/$(PKG_VERSION)?
15-
PKG_HASH:=cdb80e51d330c89495fcf01b096792af079856f1feb6474c282d4ad954e3fda2
15+
PKG_HASH:=e3f0a0a02a4ba847cb962ea7e12c89e3f4ab732944f04ebeb76d4d9711fa8ca6
1616
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/realtek-$(PKG_NAME)-dkms-$(PKG_VERSION)
1717

1818
PKG_LICENSE:=GPL-2.0-only

package/lean/shortcut-fe/fast-classifier/src/fast-classifier.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ static u32 fc_conn_hash(sfe_ip_addr_t *saddr, sfe_ip_addr_t *daddr,
451451
*/
452452
static int fast_classifier_update_protocol(struct sfe_connection_create *p_sic, struct nf_conn *ct)
453453
{
454-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(5, 18, 0)
454+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)
455455
struct net *net=NULL ;
456456
struct nf_tcp_net *tn=NULL;
457457
#endif
@@ -465,7 +465,7 @@ static int fast_classifier_update_protocol(struct sfe_connection_create *p_sic,
465465
p_sic->dest_td_max_window = ct->proto.tcp.seen[1].td_maxwin;
466466
p_sic->dest_td_end = ct->proto.tcp.seen[1].td_end;
467467
p_sic->dest_td_max_end = ct->proto.tcp.seen[1].td_maxend;
468-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(5, 18, 0)
468+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)
469469
net = nf_ct_net(ct);
470470
tn = nf_tcp_pernet(net);
471471
if ((tn&&tn->tcp_no_window_check)

0 commit comments

Comments
 (0)