From eab6965be3f87821082491bc9956ab6a6b7f467b Mon Sep 17 00:00:00 2001 From: zhang-mingyi66 Date: Sat, 15 Jul 2023 00:06:55 +0800 Subject: [PATCH] ipv4, bpf: Introduced to support the ULP to modify sockets during setopt hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I7LE1H ------------------------------------------------------ Currently, the ebpf program can distinguish sockets according to the address accessed by the client, and use the ULP framework to modify the matched sockets to delay link establishment. Signed-off-by: zhang-mingyi66 --- net/core/filter.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/core/filter.c b/net/core/filter.c index d9ce04ca22ce..bb90414d7243 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -5255,6 +5255,10 @@ static int sol_tcp_sockopt(struct sock *sk, int optname, if (*optlen < 1) return -EINVAL; break; + case TCP_ULP: + if (getopt) + return -EINVAL; + break; default: if (getopt) return -EINVAL; -- GitLab