Skip to content

Commit f8c88a3

Browse files
jukkarhenrikbrixandersen
authored andcommitted
tests: net: dns-sd: Fix IPv4 TTL and IPv6 hop limit checking
We need to use multicast TTL/hoplimit instead of unicast one in the test. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent 060295c commit f8c88a3

File tree

1 file changed

+2
-2
lines changed
  • tests/net/lib/dns_sd/src

1 file changed

+2
-2
lines changed

tests/net/lib/dns_sd/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ ZTEST(dns_sd, test_setup_dst_addr)
684684
zassert_equal(ret, 0, "Create IPv4 UDP context failed");
685685

686686
zassert_equal(0, setup_dst_addr(ctx_v4, AF_INET, &dst, &dst_len), "");
687-
zassert_equal(255, ctx_v4->ipv4_ttl, "");
687+
zassert_equal(255, ctx_v4->ipv4_mcast_ttl, "");
688688
zassert_true(net_ipv4_addr_cmp(&addr_v4_expect,
689689
&net_sin(&dst)->sin_addr), "");
690690
zassert_equal(8, dst_len, "");
@@ -701,7 +701,7 @@ ZTEST(dns_sd, test_setup_dst_addr)
701701
zassert_equal(ret, 0, "Create IPv6 UDP context failed");
702702

703703
zassert_equal(0, setup_dst_addr(ctx_v6, AF_INET6, &dst, &dst_len), "");
704-
zassert_equal(255, ctx_v6->ipv6_hop_limit, "");
704+
zassert_equal(255, ctx_v6->ipv6_mcast_hop_limit, "");
705705
zassert_true(net_ipv6_addr_cmp(&addr_v6_expect,
706706
&net_sin6(&dst)->sin6_addr), "");
707707
zassert_equal(24, dst_len, "");

0 commit comments

Comments
 (0)