Commit eab6965b authored by zhang-mingyi66's avatar zhang-mingyi66
Browse files

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: default avatarzhang-mingyi66 <zhangmingyi5@huawei.com>
parent dba07468
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;