1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
From 66e4304101010108892376866334ec9317b427d8 Mon Sep 17 00:00:00 2001
From: ABC <abc@openwall.com>
Date: Wed, 14 Jul 2021 15:39:42 +0300
Subject: [PATCH 02/17] Namespace sk_error_report
sk_error_report is introduced in v5.14-rc1: e3ae2365efc14 ("net: sock:
introduce sk_error_report").
---
ipt_NETFLOW.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ipt_NETFLOW.c b/ipt_NETFLOW.c
index c4c049d..136c17c 100644
--- a/ipt_NETFLOW.c
+++ b/ipt_NETFLOW.c
@@ -1943,7 +1943,7 @@ static struct ctl_path netflow_sysctl_path[] = {
#endif /* CONFIG_SYSCTL */
/* socket code */
-static void sk_error_report(struct sock *sk)
+static void netflow_sk_error_report(struct sock *sk)
{
struct ipt_netflow_sock *usock;
@@ -1974,7 +1974,7 @@ static struct socket *usock_open_sock(struct ipt_netflow_sock *usock)
}
sock->sk->sk_allocation = GFP_ATOMIC;
sock->sk->sk_prot->unhash(sock->sk); /* hidden from input */
- sock->sk->sk_error_report = &sk_error_report; /* clear ECONNREFUSED */
+ sock->sk->sk_error_report = &netflow_sk_error_report; /* clear ECONNREFUSED */
sock->sk->sk_user_data = usock;
sock->sk->sk_reuse = SK_CAN_REUSE;
--
2.39.5
|