Lines Matching +full:0 +full:x90
31 return 0; in prog_attach()
54 return 0; in prog_detach()
64 /* Set IP_TOS to the expected value (0x80). */ in run_getsockopt_test()
66 buf = 0x80; in run_getsockopt_test()
68 if (err < 0) { in run_getsockopt_test()
73 buf = 0x00; in run_getsockopt_test()
81 if (buf != 0x80) { in run_getsockopt_test()
82 log_err("Unexpected getsockopt 0x%x != 0x80 without BPF", buf); in run_getsockopt_test()
88 * - kernel: -> 0x80 in run_getsockopt_test()
89 * - child: 0x80 -> 0x90 in run_getsockopt_test()
96 buf = 0x00; in run_getsockopt_test()
104 if (buf != 0x90) { in run_getsockopt_test()
105 log_err("Unexpected getsockopt 0x%x != 0x90", buf); in run_getsockopt_test()
111 * - kernel: -> 0x80 in run_getsockopt_test()
112 * - child: 0x80 -> 0x90 in run_getsockopt_test()
113 * - parent: 0x90 -> 0xA0 in run_getsockopt_test()
120 buf = 0x00; in run_getsockopt_test()
128 if (buf != 0xA0) { in run_getsockopt_test()
129 log_err("Unexpected getsockopt 0x%x != 0xA0", buf); in run_getsockopt_test()
135 * - kernel: -> 0x40 in run_getsockopt_test()
136 * - child: unexpected 0x40, EPERM in run_getsockopt_test()
137 * - parent: unexpected 0x40, EPERM in run_getsockopt_test()
140 buf = 0x40; in run_getsockopt_test()
142 if (err < 0) { in run_getsockopt_test()
147 buf = 0x00; in run_getsockopt_test()
156 * - kernel: -> 0x40 in run_getsockopt_test()
157 * - parent: unexpected 0x40, EPERM in run_getsockopt_test()
166 buf = 0x00; in run_getsockopt_test()
175 * - kernel: -> 0x90 in run_getsockopt_test()
176 * - parent: 0x90 -> 0xA0 in run_getsockopt_test()
179 buf = 0x90; in run_getsockopt_test()
181 if (err < 0) { in run_getsockopt_test()
186 buf = 0x00; in run_getsockopt_test()
194 if (buf != 0xA0) { in run_getsockopt_test()
195 log_err("Unexpected getsockopt 0x%x != 0xA0", buf); in run_getsockopt_test()
214 /* Set IP_TOS to the expected value (0x80). */ in run_setsockopt_test()
216 buf = 0x80; in run_setsockopt_test()
218 if (err < 0) { in run_setsockopt_test()
223 buf = 0x00; in run_setsockopt_test()
231 if (buf != 0x80) { in run_setsockopt_test()
232 log_err("Unexpected getsockopt 0x%x != 0x80 without BPF", buf); in run_setsockopt_test()
237 /* Attach child program and make sure it adds 0x10. */ in run_setsockopt_test()
243 buf = 0x80; in run_setsockopt_test()
245 if (err < 0) { in run_setsockopt_test()
250 buf = 0x00; in run_setsockopt_test()
258 if (buf != 0x80 + 0x10) { in run_setsockopt_test()
259 log_err("Unexpected getsockopt 0x%x != 0x80 + 0x10", buf); in run_setsockopt_test()
264 /* Attach parent program and make sure it adds another 0x10. */ in run_setsockopt_test()
270 buf = 0x80; in run_setsockopt_test()
272 if (err < 0) { in run_setsockopt_test()
277 buf = 0x00; in run_setsockopt_test()
285 if (buf != 0x80 + 2 * 0x10) { in run_setsockopt_test()
286 log_err("Unexpected getsockopt 0x%x != 0x80 + 2 * 0x10", buf); in run_setsockopt_test()
310 if (CHECK_FAIL(cg_parent < 0)) in test_sockopt_multi()
314 if (CHECK_FAIL(cg_child < 0)) in test_sockopt_multi()
321 sock_fd = socket(AF_INET, SOCK_STREAM, 0); in test_sockopt_multi()
322 if (CHECK_FAIL(sock_fd < 0)) in test_sockopt_multi()