Lines Matching full:mtu

58 /* This is a helper function to get the MTU value for the given destination.
255 zassert_equal(ret, 0, "PMTU IPv4 MTU update failed (%d)", ret); in ZTEST()
273 zassert_equal(ret, 0, "PMTU IPv6 MTU update failed (%d)", ret); in ZTEST()
286 uint16_t mtu; in ZTEST() local
293 zassert_equal(ret, 1300, "PMTU IPv4 MTU update failed (%d)", ret); in ZTEST()
295 zassert_equal(entry->mtu, 1300, "PMTU IPv4 MTU is not correct (%d)", in ZTEST()
296 entry->mtu); in ZTEST()
302 zassert_equal(ret, 0, "PMTU IPv4 MTU update failed (%d)", ret); in ZTEST()
303 mtu = net_pmtu_get_mtu((struct sockaddr *)&dest_ipv4); in ZTEST()
304 zassert_equal(mtu, 1400, "PMTU IPv4 MTU is not correct (%d)", mtu); in ZTEST()
310 zassert_equal(ret, 0, "PMTU IPv4 MTU update failed (%d)", ret); in ZTEST()
312 zassert_equal(entry->mtu, 1500, "PMTU IPv4 MTU is not correct (%d)", in ZTEST()
313 entry->mtu); in ZTEST()
317 zassert_equal(ret, -ENOENT, "PMTU IPv4 MTU update succeed (%d)", ret); in ZTEST()
319 zassert_equal(entry, NULL, "PMTU IPv4 MTU update succeed"); in ZTEST()
330 uint16_t mtu; in ZTEST() local
337 zassert_equal(ret, 1600, "PMTU IPv6 MTU update failed (%d)", ret); in ZTEST()
339 zassert_equal(entry->mtu, 1600, "PMTU IPv6 MTU is not correct (%d)", in ZTEST()
340 entry->mtu); in ZTEST()
346 zassert_equal(ret, 0, "PMTU IPv6 MTU update failed (%d)", ret); in ZTEST()
347 mtu = net_pmtu_get_mtu((struct sockaddr *)&dest_ipv6); in ZTEST()
348 zassert_equal(mtu, 1700, "PMTU IPv6 MTU is not correct (%d)", mtu); in ZTEST()
354 zassert_equal(ret, 0, "PMTU IPv6 MTU update failed (%d)", ret); in ZTEST()
356 zassert_equal(entry->mtu, 1800, "PMTU IPv6 MTU is not correct (%d)", in ZTEST()
357 entry->mtu); in ZTEST()
361 zassert_equal(ret, -ENOENT, "PMTU IPv6 MTU update succeed (%d)", ret); in ZTEST()
363 zassert_equal(entry, NULL, "PMTU IPv6 MTU update succeed"); in ZTEST()
381 zassert_equal(ret, 0, "PMTU IPv4 MTU update failed (%d)", ret); in ZTEST()
384 zassert_equal(entry->mtu, 1450, "PMTU IPv4 MTU is not correct (%d)", in ZTEST()
385 entry->mtu); in ZTEST()
391 zassert_is_null(entry, "PMTU IPv4 MTU found when it should not be"); in ZTEST()
409 zassert_equal(ret, 0, "PMTU IPv6 MTU update failed (%d)", ret); in ZTEST()
412 zassert_equal(entry->mtu, 1650, "PMTU IPv6 MTU is not correct (%d)", in ZTEST()
413 entry->mtu); in ZTEST()
431 zassert_is_null(entry, "PMTU IPv6 MTU found when it should not be"); in ZTEST()
505 uint32_t mtu, in create_icmpv6_ptb() argument
539 ptb_hdr.mtu = htonl(mtu); in create_icmpv6_ptb()
566 uint16_t mtu; in ZTEST() local
575 /* Set initial MTU for the destination */ in ZTEST()
577 zassert_true(ret >= 0, "PMTU IPv6 MTU update failed (%d)", ret); in ZTEST()
589 mtu = net_tcp_get_mtu((struct sockaddr *)&s_saddr); in ZTEST()
590 zassert_equal(mtu, 2048, "PMTU IPv6 MTU is not correct (%d)", mtu); in ZTEST()
631 uint32_t mtu, in create_icmpv4_dest_unreach() argument
665 du_hdr.mtu = htons(mtu); in create_icmpv4_dest_unreach()
692 uint16_t mtu; in ZTEST() local
701 /* Set initial MTU for the destination */ in ZTEST()
703 zassert_true(ret >= 0, "PMTU IPv6 MTU update failed (%d)", ret); in ZTEST()
715 mtu = net_tcp_get_mtu((struct sockaddr *)&s_saddr); in ZTEST()
716 zassert_equal(mtu, 2048, "PMTU IPv4 MTU is not correct (%d)", mtu); in ZTEST()
739 zassert_equal(ret, 0, "PMTU IPv4 MTU update failed (%d)", ret); in ZTEST()
767 zassert_equal(ret, 0, "PMTU IPv6 MTU update failed (%d)", ret); in ZTEST()
795 /* Set initial MTU for the destination */ in ZTEST()
797 zassert_true(ret >= 0, "PMTU IPv4 MTU update failed (%d)", ret); in ZTEST()
804 zexpect_equal(optval, 4096, "setsockopt mtu (%d)", optval); in ZTEST()
811 zexpect_equal(optval, 0, "setsockopt mtu (%d)", optval); in ZTEST()
834 /* Set initial MTU for the destination */ in ZTEST()
836 zassert_true(ret >= 0, "PMTU IPv6 MTU update failed (%d)", ret); in ZTEST()
843 zexpect_equal(optval, 2048, "getsockopt mtu (%d)", optval); in ZTEST()
850 zexpect_equal(optval, 1500, "setsockopt mtu (%d)", optval); in ZTEST()
857 zexpect_equal(optval, 1500, "getsockopt mtu (%d)", optval); in ZTEST()