Lines Matching +full:0 +full:x90

16 	/* Set IP_TOS to the expected value (0x80). */  in run_getsockopt_test()
18 buf = 0x80; in run_getsockopt_test()
20 if (err < 0) { in run_getsockopt_test()
25 buf = 0x00; in run_getsockopt_test()
33 if (buf != 0x80) { in run_getsockopt_test()
34 log_err("Unexpected getsockopt 0x%x != 0x80 without BPF", buf); in run_getsockopt_test()
40 * - kernel: -> 0x80 in run_getsockopt_test()
41 * - child: 0x80 -> 0x90 in run_getsockopt_test()
49 buf = 0x00; in run_getsockopt_test()
57 if (buf != 0x90) { in run_getsockopt_test()
58 log_err("Unexpected getsockopt 0x%x != 0x90", buf); in run_getsockopt_test()
64 * - kernel: -> 0x80 in run_getsockopt_test()
65 * - child: 0x80 -> 0x90 in run_getsockopt_test()
66 * - parent: 0x90 -> 0xA0 in run_getsockopt_test()
74 buf = 0x00; in run_getsockopt_test()
82 if (buf != 0xA0) { in run_getsockopt_test()
83 log_err("Unexpected getsockopt 0x%x != 0xA0", buf); in run_getsockopt_test()
89 * - kernel: -> 0x40 in run_getsockopt_test()
90 * - child: unexpected 0x40, EPERM in run_getsockopt_test()
91 * - parent: unexpected 0x40, EPERM in run_getsockopt_test()
94 buf = 0x40; in run_getsockopt_test()
96 if (err < 0) { in run_getsockopt_test()
101 buf = 0x00; in run_getsockopt_test()
110 * - kernel: -> 0x40 in run_getsockopt_test()
111 * - parent: unexpected 0x40, EPERM in run_getsockopt_test()
117 buf = 0x00; in run_getsockopt_test()
126 * - kernel: -> 0x90 in run_getsockopt_test()
127 * - parent: 0x90 -> 0xA0 in run_getsockopt_test()
130 buf = 0x90; in run_getsockopt_test()
132 if (err < 0) { in run_getsockopt_test()
137 buf = 0x00; in run_getsockopt_test()
145 if (buf != 0xA0) { in run_getsockopt_test()
146 log_err("Unexpected getsockopt 0x%x != 0xA0", buf); in run_getsockopt_test()
167 /* Set IP_TOS to the expected value (0x80). */ in run_setsockopt_test()
169 buf = 0x80; in run_setsockopt_test()
171 if (err < 0) { in run_setsockopt_test()
176 buf = 0x00; in run_setsockopt_test()
184 if (buf != 0x80) { in run_setsockopt_test()
185 log_err("Unexpected getsockopt 0x%x != 0x80 without BPF", buf); in run_setsockopt_test()
190 /* Attach child program and make sure it adds 0x10. */ in run_setsockopt_test()
197 buf = 0x80; in run_setsockopt_test()
199 if (err < 0) { in run_setsockopt_test()
204 buf = 0x00; in run_setsockopt_test()
212 if (buf != 0x80 + 0x10) { in run_setsockopt_test()
213 log_err("Unexpected getsockopt 0x%x != 0x80 + 0x10", buf); in run_setsockopt_test()
218 /* Attach parent program and make sure it adds another 0x10. */ in run_setsockopt_test()
225 buf = 0x80; in run_setsockopt_test()
227 if (err < 0) { in run_setsockopt_test()
232 buf = 0x00; in run_setsockopt_test()
240 if (buf != 0x80 + 2 * 0x10) { in run_setsockopt_test()
241 log_err("Unexpected getsockopt 0x%x != 0x80 + 2 * 0x10", buf); in run_setsockopt_test()
260 if (!ASSERT_GE(cg_parent, 0, "join_cgroup /parent")) in test_sockopt_multi()
264 if (!ASSERT_GE(cg_child, 0, "join_cgroup /parent/child")) in test_sockopt_multi()
273 sock_fd = socket(AF_INET, SOCK_STREAM, 0); in test_sockopt_multi()
274 if (!ASSERT_GE(sock_fd, 0, "socket")) in test_sockopt_multi()