Searched refs:optval (Results 1 – 9 of 9) sorted by relevance
/tools/testing/selftests/bpf/progs/ |
D | sockopt_multi.c | 13 __u8 *optval = ctx->optval; in _getsockopt_child() local 18 if (optval + 1 > optval_end) in _getsockopt_child() 21 if (optval[0] != 0x80) in _getsockopt_child() 26 optval[0] = 0x90; in _getsockopt_child() 36 __u8 *optval = ctx->optval; in _getsockopt_parent() local 41 if (optval + 1 > optval_end) in _getsockopt_parent() 44 if (optval[0] != 0x90) in _getsockopt_parent() 49 optval[0] = 0xA0; in _getsockopt_parent() 59 __u8 *optval = ctx->optval; in _setsockopt() local 64 if (optval + 1 > optval_end) in _setsockopt() [all …]
|
D | sockopt_sk.c | 33 __u8 *optval = ctx->optval; in _getsockopt() local 81 if (optval + sizeof(struct tcp_zerocopy_receive) > optval_end) in _getsockopt() 84 if (((struct tcp_zerocopy_receive *)optval)->address != 0) in _getsockopt() 91 if (optval + 1 > optval_end) in _getsockopt() 97 optval[0] = 0x55; in _getsockopt() 104 if (optval_end - optval != page_size) in _getsockopt() 113 if (optval + 1 > optval_end) in _getsockopt() 127 optval[0] = storage->val; in _getsockopt() 137 __u8 *optval = ctx->optval; in _setsockopt() local 166 if (optval + sizeof(__u32) > optval_end) in _setsockopt() [all …]
|
D | sockopt_inherit.c | 56 __u8 *optval = ctx->optval; in _getsockopt() local 61 if (optval + 1 > optval_end) in _getsockopt() 70 optval[0] = storage->val; in _getsockopt() 81 __u8 *optval = ctx->optval; in _setsockopt() local 86 if (optval + 1 > optval_end) in _setsockopt() 93 storage->val = optval[0]; in _setsockopt()
|
D | sockopt_qos_to_cc.c | 16 int *optval = ctx->optval; in sockopt_qos_to_cc() local 24 if (optval + 1 > optval_end) in sockopt_qos_to_cc() 33 if (*optval == 0x2d) { in sockopt_qos_to_cc()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | sockopt.c | 106 offsetof(struct bpf_sockopt, optval)), 321 offsetof(struct bpf_sockopt, optval)), 348 offsetof(struct bpf_sockopt, optval)), 452 offsetof(struct bpf_sockopt, optval)), 656 offsetof(struct bpf_sockopt, optval)), 734 offsetof(struct bpf_sockopt, optval)), 761 offsetof(struct bpf_sockopt, optval)), 807 offsetof(struct bpf_sockopt, optval)), 880 void *optval = NULL; in run_test() local 925 optval = malloc(test->get_optlen); in run_test() [all …]
|
D | select_reuseport.c | 607 int i, err, optval = 1; in prepare_sk_fds() local 626 &optval, sizeof(optval)); in prepare_sk_fds()
|
/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/testing/selftests/bpf/ |
D | test_maps.c | 1611 const int optval = 1; in prepare_reuseport_grp() local 1632 &optval, sizeof(optval)); in prepare_reuseport_grp()
|
/tools/include/uapi/linux/ |
D | bpf.h | 6237 __bpf_md_ptr(void *, optval);
|