Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/progs/
Dsockopt_sk.c35 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) { in _getsockopt()
44 if (ctx->level == SOL_SOCKET && ctx->optname == SO_SNDBUF) { in _getsockopt()
52 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _getsockopt()
60 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) { in _getsockopt()
110 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) { in _setsockopt()
119 if (ctx->level == SOL_SOCKET && ctx->optname == SO_SNDBUF) { in _setsockopt()
131 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _setsockopt()
143 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()
/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/include/uapi/linux/
Dbpf.h5003 __s32 optname; member