Lines Matching refs:buf

13 	__u8 buf;  in run_getsockopt_test()  local
18 buf = 0x80; in run_getsockopt_test()
19 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test()
25 buf = 0x00; in run_getsockopt_test()
27 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); 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()
49 buf = 0x00; in run_getsockopt_test()
51 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); 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()
74 buf = 0x00; in run_getsockopt_test()
76 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); 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()
94 buf = 0x40; in run_getsockopt_test()
95 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test()
101 buf = 0x00; in run_getsockopt_test()
103 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test()
117 buf = 0x00; in run_getsockopt_test()
119 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test()
130 buf = 0x90; in run_getsockopt_test()
131 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test()
137 buf = 0x00; in run_getsockopt_test()
139 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); 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()
164 __u8 buf; in run_setsockopt_test() local
169 buf = 0x80; in run_setsockopt_test()
170 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_setsockopt_test()
176 buf = 0x00; in run_setsockopt_test()
178 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); 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()
197 buf = 0x80; in run_setsockopt_test()
198 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_setsockopt_test()
204 buf = 0x00; in run_setsockopt_test()
206 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); 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()
225 buf = 0x80; in run_setsockopt_test()
226 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_setsockopt_test()
232 buf = 0x00; in run_setsockopt_test()
234 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); 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()