Lines Matching refs:optval
788 int optval; in ZTEST() local
799 optval = 0; optlen = sizeof(int); in ZTEST()
800 ret = zsock_getsockopt(client_sock, IPPROTO_IP, IP_MTU, &optval, &optlen); in ZTEST()
804 zexpect_equal(optval, 4096, "setsockopt mtu (%d)", optval); in ZTEST()
806 optval = 0; optlen = sizeof(int); in ZTEST()
807 ret = zsock_setsockopt(client_sock, IPPROTO_IP, IP_MTU, &optval, optlen); in ZTEST()
811 zexpect_equal(optval, 0, "setsockopt mtu (%d)", optval); in ZTEST()
827 int optval; in ZTEST() local
838 optval = 0; optlen = sizeof(int); in ZTEST()
839 ret = zsock_getsockopt(client_sock, IPPROTO_IPV6, IPV6_MTU, &optval, &optlen); in ZTEST()
843 zexpect_equal(optval, 2048, "getsockopt mtu (%d)", optval); in ZTEST()
845 optval = 1500; optlen = sizeof(int); in ZTEST()
846 ret = zsock_setsockopt(client_sock, IPPROTO_IPV6, IPV6_MTU, &optval, optlen); in ZTEST()
850 zexpect_equal(optval, 1500, "setsockopt mtu (%d)", optval); in ZTEST()
852 optval = 0; optlen = sizeof(int); in ZTEST()
853 ret = zsock_getsockopt(client_sock, IPPROTO_IPV6, IPV6_MTU, &optval, &optlen); in ZTEST()
857 zexpect_equal(optval, 1500, "getsockopt mtu (%d)", optval); in ZTEST()