Lines Matching refs:expected

230 	struct data_check expected = {}, result;  in check_data()  local
246 expected.len = MIN_TCPHDR_LEN; in check_data()
247 expected.ip_protocol = IPPROTO_TCP; in check_data()
249 expected.len = UDPHDR_LEN; in check_data()
250 expected.ip_protocol = IPPROTO_UDP; in check_data()
254 expected.eth_protocol = htons(ETH_P_IPV6); in check_data()
255 expected.bind_inany = !srv_sa.v6.sin6_addr.s6_addr32[3] && in check_data()
260 memcpy(&expected.skb_addrs[0], cli_sa.v6.sin6_addr.s6_addr32, in check_data()
262 memcpy(&expected.skb_addrs[4], &in6addr_loopback, in check_data()
264 expected.skb_ports[0] = cli_sa.v6.sin6_port; in check_data()
265 expected.skb_ports[1] = srv_sa.v6.sin6_port; in check_data()
267 expected.eth_protocol = htons(ETH_P_IP); in check_data()
268 expected.bind_inany = !srv_sa.v4.sin_addr.s_addr; in check_data()
270 expected.skb_addrs[0] = cli_sa.v4.sin_addr.s_addr; in check_data()
271 expected.skb_addrs[1] = htonl(INADDR_LOOPBACK); in check_data()
272 expected.skb_ports[0] = cli_sa.v4.sin_port; in check_data()
273 expected.skb_ports[1] = srv_sa.v4.sin_port; in check_data()
276 if (memcmp(&result, &expected, offsetof(struct data_check, in check_data()
283 expected.eth_protocol, expected.ip_protocol, in check_data()
284 expected.bind_inany); in check_data()
292 expected.len += cmd ? sizeof(*cmd) : 0; in check_data()
294 RET_IF(expected.len > result.len, "expected.len > result.len", in check_data()
296 expected.len, result.len, get_linum()); in check_data()
298 RET_IF(expected.len != result.len, "expected.len != result.len", in check_data()
300 expected.len, result.len, get_linum()); in check_data()
365 enum result expected) in send_data() argument
379 RET_ERR(err != len && expected >= PASS, in send_data()
381 family, err, errno, expected); in send_data()
387 enum result expected) in do_test() argument
395 expected); in do_test()
398 nev = epoll_wait(epfd, &ev, 1, expected >= PASS ? 5 : 0); in do_test()
399 RET_IF((nev <= 0 && expected >= PASS) || in do_test()
400 (nev > 0 && expected < PASS), in do_test()
403 nev, expected, type, family, in do_test()
409 if (expected < PASS) in do_test()
412 RET_IF(expected != PASS_ERR_SK_SELECT_REUSEPORT && in do_test()