Lines Matching full:out

601 	struct tcp_ao_getsockopt out;  in test_einval_get_keys()  local
607 getsockopt_checked(sk, &out, ENOENT, "no ao_info"); in test_einval_get_keys()
609 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
610 getsockopt_checked(sk, &out, 0, "proper tcp_ao_get_mkts()"); in test_einval_get_keys()
612 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
613 out.pkt_good = 643; in test_einval_get_keys()
614 getsockopt_checked(sk, &out, EINVAL, "set out-only pkt_good counter"); in test_einval_get_keys()
616 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
617 out.pkt_bad = 94; in test_einval_get_keys()
618 getsockopt_checked(sk, &out, EINVAL, "set out-only pkt_bad counter"); in test_einval_get_keys()
620 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
621 out.keyflags = (uint8_t)(-1); in test_einval_get_keys()
622 getsockopt_checked(sk, &out, EINVAL, "bad keyflags"); in test_einval_get_keys()
624 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
625 out.ifindex = 42; in test_einval_get_keys()
626 getsockopt_checked(sk, &out, EINVAL, in test_einval_get_keys()
629 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
630 out.reserved = 1; in test_einval_get_keys()
631 getsockopt_checked(sk, &out, EINVAL, "using reserved field"); in test_einval_get_keys()
633 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
634 out.get_all = 0; in test_einval_get_keys()
635 out.prefix = 0; in test_einval_get_keys()
636 tcp_addr_to_sockaddr_in(&out.addr, &this_ip_dest, 0); in test_einval_get_keys()
637 getsockopt_checked(sk, &out, EINVAL, "no prefix, addr"); in test_einval_get_keys()
639 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
640 out.get_all = 0; in test_einval_get_keys()
641 out.prefix = 0; in test_einval_get_keys()
642 memcpy(&out.addr, &SOCKADDR_ANY, sizeof(SOCKADDR_ANY)); in test_einval_get_keys()
643 getsockopt_checked(sk, &out, 0, "no prefix, any addr"); in test_einval_get_keys()
645 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
646 out.get_all = 0; in test_einval_get_keys()
647 out.prefix = 32; in test_einval_get_keys()
648 memcpy(&out.addr, &SOCKADDR_ANY, sizeof(SOCKADDR_ANY)); in test_einval_get_keys()
649 getsockopt_checked(sk, &out, EINVAL, "prefix, any addr"); in test_einval_get_keys()
651 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
652 out.get_all = 0; in test_einval_get_keys()
653 out.prefix = 129; in test_einval_get_keys()
654 tcp_addr_to_sockaddr_in(&out.addr, &this_ip_dest, 0); in test_einval_get_keys()
655 getsockopt_checked(sk, &out, EINVAL, "too big prefix"); in test_einval_get_keys()
657 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
658 out.get_all = 0; in test_einval_get_keys()
659 out.prefix = 2; in test_einval_get_keys()
660 tcp_addr_to_sockaddr_in(&out.addr, &this_ip_dest, 0); in test_einval_get_keys()
661 getsockopt_checked(sk, &out, EINVAL, "too short prefix"); in test_einval_get_keys()
663 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
664 out.get_all = 0; in test_einval_get_keys()
665 out.prefix = DEFAULT_TEST_PREFIX; in test_einval_get_keys()
666 tcp_addr_to_sockaddr_in(&out.addr, &this_ip_dest, 0); in test_einval_get_keys()
667 getsockopt_checked(sk, &out, 0, "prefix + addr"); in test_einval_get_keys()
669 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
670 out.get_all = 1; in test_einval_get_keys()
671 out.prefix = DEFAULT_TEST_PREFIX; in test_einval_get_keys()
672 getsockopt_checked(sk, &out, EINVAL, "get_all + prefix"); in test_einval_get_keys()
674 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
675 out.get_all = 1; in test_einval_get_keys()
676 tcp_addr_to_sockaddr_in(&out.addr, &this_ip_dest, 0); in test_einval_get_keys()
677 getsockopt_checked(sk, &out, EINVAL, "get_all + addr"); in test_einval_get_keys()
679 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
680 out.get_all = 1; in test_einval_get_keys()
681 out.sndid = 1; in test_einval_get_keys()
682 getsockopt_checked(sk, &out, EINVAL, "get_all + sndid"); in test_einval_get_keys()
684 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
685 out.get_all = 1; in test_einval_get_keys()
686 out.rcvid = 1; in test_einval_get_keys()
687 getsockopt_checked(sk, &out, EINVAL, "get_all + rcvid"); in test_einval_get_keys()
689 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
690 out.get_all = 0; in test_einval_get_keys()
691 out.is_current = 1; in test_einval_get_keys()
692 out.prefix = DEFAULT_TEST_PREFIX; in test_einval_get_keys()
693 getsockopt_checked(sk, &out, EINVAL, "current + prefix"); in test_einval_get_keys()
695 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
696 out.get_all = 0; in test_einval_get_keys()
697 out.is_current = 1; in test_einval_get_keys()
698 tcp_addr_to_sockaddr_in(&out.addr, &this_ip_dest, 0); in test_einval_get_keys()
699 getsockopt_checked(sk, &out, EINVAL, "current + addr"); in test_einval_get_keys()
701 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
702 out.get_all = 0; in test_einval_get_keys()
703 out.is_current = 1; in test_einval_get_keys()
704 out.sndid = 1; in test_einval_get_keys()
705 getsockopt_checked(sk, &out, EINVAL, "current + sndid"); in test_einval_get_keys()
707 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
708 out.get_all = 0; in test_einval_get_keys()
709 out.is_current = 1; in test_einval_get_keys()
710 out.rcvid = 1; in test_einval_get_keys()
711 getsockopt_checked(sk, &out, EINVAL, "current + rcvid"); in test_einval_get_keys()
713 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
714 out.get_all = 0; in test_einval_get_keys()
715 out.is_rnext = 1; in test_einval_get_keys()
716 out.prefix = DEFAULT_TEST_PREFIX; in test_einval_get_keys()
717 getsockopt_checked(sk, &out, EINVAL, "rnext + prefix"); in test_einval_get_keys()
719 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
720 out.get_all = 0; in test_einval_get_keys()
721 out.is_rnext = 1; in test_einval_get_keys()
722 tcp_addr_to_sockaddr_in(&out.addr, &this_ip_dest, 0); in test_einval_get_keys()
723 getsockopt_checked(sk, &out, EINVAL, "rnext + addr"); in test_einval_get_keys()
725 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
726 out.get_all = 0; in test_einval_get_keys()
727 out.is_rnext = 1; in test_einval_get_keys()
728 out.sndid = 1; in test_einval_get_keys()
729 getsockopt_checked(sk, &out, EINVAL, "rnext + sndid"); in test_einval_get_keys()
731 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
732 out.get_all = 0; in test_einval_get_keys()
733 out.is_rnext = 1; in test_einval_get_keys()
734 out.rcvid = 1; in test_einval_get_keys()
735 getsockopt_checked(sk, &out, EINVAL, "rnext + rcvid"); in test_einval_get_keys()
737 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
738 out.get_all = 1; in test_einval_get_keys()
739 out.is_current = 1; in test_einval_get_keys()
740 getsockopt_checked(sk, &out, EINVAL, "get_all + current"); in test_einval_get_keys()
742 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
743 out.get_all = 1; in test_einval_get_keys()
744 out.is_rnext = 1; in test_einval_get_keys()
745 getsockopt_checked(sk, &out, EINVAL, "get_all + rnext"); in test_einval_get_keys()
747 sk = prepare_defs(TCP_AO_GET_KEYS, &out); in test_einval_get_keys()
748 out.get_all = 0; in test_einval_get_keys()
749 out.is_current = 1; in test_einval_get_keys()
750 out.is_rnext = 1; in test_einval_get_keys()
751 getsockopt_checked(sk, &out, 0, "current + rnext"); in test_einval_get_keys()