Searched refs:optname (Results 1 – 9 of 9) sorted by relevance
/tools/testing/selftests/bpf/progs/ |
D | sockopt_sk.c | 50 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()
|
D | sockopt_multi.c | 15 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()
|
D | sockopt_inherit.c | 40 if (ctx->optname == CUSTOM_INHERIT1) in get_storage() 43 else if (ctx->optname == CUSTOM_INHERIT2) in get_storage()
|
D | sockopt_qos_to_cc.c | 21 if (ctx->level != SOL_IPV6 || ctx->optname != IPV6_TCLASS) in sockopt_qos_to_cc()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | sockopt_inherit.c | 39 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()
|
D | sockopt.c | 168 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/ |
D | msg_zerocopy.c | 135 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/ |
D | mptcp_connect.c | 905 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/ |
D | bpf.h | 6210 __s32 optname; member
|