Lines Matching refs:mtu
837 uint32_t mtu = 0; in TEST() local
839 assert_se(parse_mtu(AF_UNSPEC, "1500", &mtu) >= 0 && mtu == 1500); in TEST()
840 assert_se(parse_mtu(AF_UNSPEC, "1400", &mtu) >= 0 && mtu == 1400); in TEST()
841 assert_se(parse_mtu(AF_UNSPEC, "65535", &mtu) >= 0 && mtu == 65535); in TEST()
842 assert_se(parse_mtu(AF_UNSPEC, "65536", &mtu) >= 0 && mtu == 65536); in TEST()
843 assert_se(parse_mtu(AF_UNSPEC, "4294967295", &mtu) >= 0 && mtu == 4294967295); in TEST()
844 assert_se(parse_mtu(AF_UNSPEC, "500", &mtu) >= 0 && mtu == 500); in TEST()
845 assert_se(parse_mtu(AF_UNSPEC, "1280", &mtu) >= 0 && mtu == 1280); in TEST()
846 assert_se(parse_mtu(AF_INET6, "1280", &mtu) >= 0 && mtu == 1280); in TEST()
847 assert_se(parse_mtu(AF_INET6, "1279", &mtu) == -ERANGE); in TEST()
848 assert_se(parse_mtu(AF_UNSPEC, "4294967296", &mtu) == -ERANGE); in TEST()
849 assert_se(parse_mtu(AF_INET6, "4294967296", &mtu) == -ERANGE); in TEST()
850 assert_se(parse_mtu(AF_INET6, "68", &mtu) == -ERANGE); in TEST()
851 assert_se(parse_mtu(AF_UNSPEC, "68", &mtu) >= 0 && mtu == 68); in TEST()
852 assert_se(parse_mtu(AF_UNSPEC, "67", &mtu) == -ERANGE); in TEST()
853 assert_se(parse_mtu(AF_UNSPEC, "0", &mtu) == -ERANGE); in TEST()
854 assert_se(parse_mtu(AF_UNSPEC, "", &mtu) == -EINVAL); in TEST()