Lines Matching refs:expected

240 	struct data_check expected = {}, result;  in check_data()  local
256 expected.len = MIN_TCPHDR_LEN; in check_data()
257 expected.ip_protocol = IPPROTO_TCP; in check_data()
259 expected.len = UDPHDR_LEN; in check_data()
260 expected.ip_protocol = IPPROTO_UDP; in check_data()
264 expected.eth_protocol = htons(ETH_P_IPV6); in check_data()
265 expected.bind_inany = !srv_sa.v6.sin6_addr.s6_addr32[3] && in check_data()
270 memcpy(&expected.skb_addrs[0], cli_sa.v6.sin6_addr.s6_addr32, in check_data()
272 memcpy(&expected.skb_addrs[4], &in6addr_loopback, in check_data()
274 expected.skb_ports[0] = cli_sa.v6.sin6_port; in check_data()
275 expected.skb_ports[1] = srv_sa.v6.sin6_port; in check_data()
277 expected.eth_protocol = htons(ETH_P_IP); in check_data()
278 expected.bind_inany = !srv_sa.v4.sin_addr.s_addr; in check_data()
280 expected.skb_addrs[0] = cli_sa.v4.sin_addr.s_addr; in check_data()
281 expected.skb_addrs[1] = htonl(INADDR_LOOPBACK); in check_data()
282 expected.skb_ports[0] = cli_sa.v4.sin_port; in check_data()
283 expected.skb_ports[1] = srv_sa.v4.sin_port; in check_data()
286 if (memcmp(&result, &expected, offsetof(struct data_check, in check_data()
293 expected.eth_protocol, expected.ip_protocol, in check_data()
294 expected.bind_inany); in check_data()
302 expected.len += cmd ? sizeof(*cmd) : 0; in check_data()
304 RET_IF(expected.len > result.len, "expected.len > result.len", in check_data()
306 expected.len, result.len, get_linum()); in check_data()
308 RET_IF(expected.len != result.len, "expected.len != result.len", in check_data()
310 expected.len, result.len, get_linum()); in check_data()
375 enum result expected) in send_data() argument
389 RET_ERR(err != len && expected >= PASS, in send_data()
391 family, err, errno, expected); in send_data()
397 enum result expected) in do_test() argument
405 expected); in do_test()
408 nev = epoll_wait(epfd, &ev, 1, expected >= PASS ? 5 : 0); in do_test()
409 RET_IF((nev <= 0 && expected >= PASS) || in do_test()
410 (nev > 0 && expected < PASS), in do_test()
413 nev, expected, type, family, in do_test()
419 if (expected < PASS) in do_test()
422 RET_IF(expected != PASS_ERR_SK_SELECT_REUSEPORT && in do_test()