提交 eab6965b 编写于 作者: Z zhang-mingyi66

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: Nzhang-mingyi66 <zhangmingyi5@huawei.com>
上级 dba07468
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册