Home
last modified time | relevance | path

Searched refs:optname (Results 1 – 9 of 9) sorted by relevance

/tools/testing/selftests/bpf/progs/
Dsockopt_sk.c50 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) { in _getsockopt()
59 if (ctx->level == SOL_SOCKET && ctx->optname == SO_SNDBUF) { in _getsockopt()
67 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _getsockopt()
75 if (ctx->level == SOL_TCP && ctx->optname == TCP_ZEROCOPY_RECEIVE) { in _getsockopt()
90 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) { in _getsockopt()
154 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) { in _setsockopt()
163 if (ctx->level == SOL_SOCKET && ctx->optname == SO_SNDBUF) { in _setsockopt()
175 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _setsockopt()
187 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) { in _setsockopt()
Dsockopt_multi.c15 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _getsockopt_child()
38 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _getsockopt_parent()
61 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _setsockopt()
Dsockopt_inherit.c40 if (ctx->optname == CUSTOM_INHERIT1) in get_storage()
43 else if (ctx->optname == CUSTOM_INHERIT2) in get_storage()
Dsockopt_qos_to_cc.c21 if (ctx->level != SOL_IPV6 || ctx->optname != IPV6_TCLASS) in sockopt_qos_to_cc()
/tools/testing/selftests/bpf/prog_tests/
Dsockopt_inherit.c39 static int verify_sockopt(int fd, int optname, const char *msg, char expected) in verify_sockopt() argument
45 err = getsockopt(fd, SOL_CUSTOM, optname, &buf, &optlen); in verify_sockopt()
51 printf("%s %d: got=0x%x ? expected=0x%x\n", msg, optname, buf, expected); in verify_sockopt()
Dsockopt.c168 offsetof(struct bpf_sockopt, optname)),
216 offsetof(struct bpf_sockopt, optname)),
524 offsetof(struct bpf_sockopt, optname)),
554 offsetof(struct bpf_sockopt, optname)),
/tools/testing/selftests/net/
Dmsg_zerocopy.c135 static void do_setsockopt(int fd, int level, int optname, int val) in do_setsockopt() argument
137 if (setsockopt(fd, level, optname, &val, sizeof(val))) in do_setsockopt()
138 error(1, errno, "setsockopt %d.%d: %d", level, optname, val); in do_setsockopt()
/tools/testing/selftests/net/mptcp/
Dmptcp_connect.c905 static void xsetsockopt(int fd, int level, int optname, const void *optval, socklen_t optlen) in xsetsockopt() argument
909 err = setsockopt(fd, level, optname, optval, optlen); in xsetsockopt()
/tools/include/uapi/linux/
Dbpf.h6210 __s32 optname; member