Lines Matching refs:assert
289 assert(ret < 0); /* 0 size_subflow_data */ in do_getsockopt_bogus_sf_data()
290 assert(olen == sizeof(good_data)); in do_getsockopt_bogus_sf_data()
295 assert(ret == 0); in do_getsockopt_bogus_sf_data()
296 assert(olen == sizeof(good_data)); in do_getsockopt_bogus_sf_data()
297 assert(bd.d.num_subflows == 1); in do_getsockopt_bogus_sf_data()
298 assert(bd.d.size_kernel > 0); in do_getsockopt_bogus_sf_data()
299 assert(bd.d.size_user == 0); in do_getsockopt_bogus_sf_data()
305 assert(ret < 0); /* bogus olen */ in do_getsockopt_bogus_sf_data()
306 assert(olen == _olen); /* must be unchanged */ in do_getsockopt_bogus_sf_data()
312 assert(ret < 0); /* size_kernel not 0 */ in do_getsockopt_bogus_sf_data()
318 assert(ret < 0); /* num_subflows not 0 */ in do_getsockopt_bogus_sf_data()
326 assert(ret == 0); in do_getsockopt_bogus_sf_data()
329 assert(olen == sizeof(good_data)); in do_getsockopt_bogus_sf_data()
331 assert(bd.d.size_subflow_data == sizeof(bd)); in do_getsockopt_bogus_sf_data()
340 assert(ret == 0); in do_getsockopt_bogus_sf_data()
343 assert(olen == _olen); in do_getsockopt_bogus_sf_data()
345 assert(bd.d.size_subflow_data == sizeof(good_data) + 1); in do_getsockopt_bogus_sf_data()
346 assert(bd.buf[0] == 0); in do_getsockopt_bogus_sf_data()
367 assert(s->mi.mptcpi_write_seq + w == i.mptcpi_write_seq); in do_getsockopt_mptcp_info()
392 assert(olen <= sizeof(ti)); in do_getsockopt_tcp_info()
393 assert(ti.d.size_kernel > 0); in do_getsockopt_tcp_info()
394 assert(ti.d.size_user == in do_getsockopt_tcp_info()
396 assert(ti.d.num_subflows == 1); in do_getsockopt_tcp_info()
398 assert(olen > (socklen_t)sizeof(struct mptcp_subflow_data)); in do_getsockopt_tcp_info()
400 assert(olen == ti.d.size_user); in do_getsockopt_tcp_info()
447 assert(olen <= sizeof(addrs)); in do_getsockopt_subflow_addrs()
448 assert(addrs.d.size_kernel > 0); in do_getsockopt_subflow_addrs()
449 assert(addrs.d.size_user == in do_getsockopt_subflow_addrs()
451 assert(addrs.d.num_subflows == 1); in do_getsockopt_subflow_addrs()
453 assert(olen > (socklen_t)sizeof(struct mptcp_subflow_data)); in do_getsockopt_subflow_addrs()
455 assert(olen == addrs.d.size_user); in do_getsockopt_subflow_addrs()
466 assert(rlen > 0); in do_getsockopt_subflow_addrs()
467 assert(rlen == llen); in do_getsockopt_subflow_addrs()
469 assert(remote.ss_family == local.ss_family); in do_getsockopt_subflow_addrs()
471 assert(memcmp(&local, &addrs.addr[0].ss_local, sizeof(local)) == 0); in do_getsockopt_subflow_addrs()
472 assert(memcmp(&remote, &addrs.addr[0].ss_remote, sizeof(remote)) == 0); in do_getsockopt_subflow_addrs()
482 assert(ret == 0); in do_getsockopt_subflow_addrs()
483 assert(olen == sizeof(addrs.d) + sizeof(sa_family_t)); in do_getsockopt_subflow_addrs()
485 assert(addrs.addr[0].sa_family == pf); in do_getsockopt_subflow_addrs()
486 assert(addrs.addr[0].sa_family == local.ss_family); in do_getsockopt_subflow_addrs()
488 assert(memcmp(&local, &addrs.addr[0].ss_local, sizeof(local)) != 0); in do_getsockopt_subflow_addrs()
489 assert(memcmp(&remote, &addrs.addr[0].ss_remote, sizeof(remote)) != 0); in do_getsockopt_subflow_addrs()
523 assert(olen <= data_size); in do_getsockopt_mptcp_full_info()
524 assert(mfi.size_tcpinfo_kernel > 0); in do_getsockopt_mptcp_full_info()
525 assert(mfi.size_tcpinfo_user == in do_getsockopt_mptcp_full_info()
527 assert(mfi.size_sfinfo_kernel > 0); in do_getsockopt_mptcp_full_info()
528 assert(mfi.size_sfinfo_user == in do_getsockopt_mptcp_full_info()
530 assert(mfi.num_subflows == 1); in do_getsockopt_mptcp_full_info()
537 assert(olen > (socklen_t)__builtin_offsetof(struct mptcp_full_info, tcp_info)); in do_getsockopt_mptcp_full_info()
538 assert(mfi.mptcp_info.mptcpi_subflows == 0); in do_getsockopt_mptcp_full_info()
539 assert(mfi.mptcp_info.mptcpi_bytes_sent == s->last_sample.mptcpi_bytes_sent); in do_getsockopt_mptcp_full_info()
540 assert(mfi.mptcp_info.mptcpi_bytes_received == s->last_sample.mptcpi_bytes_received); in do_getsockopt_mptcp_full_info()
542 assert(sfinfo[0].id == 1); in do_getsockopt_mptcp_full_info()
543 assert(tcp_info[0].tcpi_bytes_sent == s->tcp_info.tcpi_bytes_sent); in do_getsockopt_mptcp_full_info()
544 assert(tcp_info[0].tcpi_bytes_received == s->tcp_info.tcpi_bytes_received); in do_getsockopt_mptcp_full_info()
545 assert(!memcmp(&sfinfo->addrs, &s->addrs, sizeof(struct mptcp_subflow_addrs))); in do_getsockopt_mptcp_full_info()
586 assert(ret == 4); in connect_one_server()
589 assert(strncmp(buf2, "xmit", 4) == 0); in connect_one_server()
618 assert(s.tcpi_rcv_delta <= total); in connect_one_server()
625 assert(s.mptcpi_rcv_delta == (uint64_t)total); in connect_one_server()
639 assert(ret == 4); in process_one_client()
645 assert(s.mptcpi_rcv_delta <= (uint64_t)ret); in process_one_client()
648 assert(s.tcpi_rcv_delta == (uint64_t)ret); in process_one_client()
709 assert(r == 4); in server()
817 assert(ret == sizeof(foo)); in init_rng()
848 assert(e1 == 4); in main()