Lines Matching full:ttl
30 extern int add_a_record(const struct dns_sd_rec *inst, uint32_t ttl,
34 extern int add_ptr_record(const struct dns_sd_rec *inst, uint32_t ttl,
40 extern int add_txt_record(const struct dns_sd_rec *inst, uint32_t ttl,
43 extern int add_aaaa_record(const struct dns_sd_rec *inst, uint32_t ttl,
47 extern int add_srv_record(const struct dns_sd_rec *inst, uint32_t ttl,
273 const uint32_t ttl = DNS_SD_PTR_TTL; in ZTEST() local
290 int actual_int = add_ptr_record(&nasxxxxxx, ttl, in ZTEST()
313 zassert_equal(-EINVAL, add_ptr_record(&null_label, ttl, in ZTEST()
321 zassert_equal(-ENOSPC, add_ptr_record(&nasxxxxxx, ttl, in ZTEST()
328 zassert_equal(-E2BIG, add_ptr_record(&nasxxxxxx, ttl, in ZTEST()
335 zassert_equal(-E2BIG, add_ptr_record(&nasxxxxxx, ttl, in ZTEST()
345 const uint32_t ttl = DNS_SD_TXT_TTL; in ZTEST() local
357 int actual_int = add_txt_record(&nasxxxxxx, ttl, in ZTEST()
370 add_txt_record(&nasxxxxxx, ttl, DNS_SD_PTR_MASK, in ZTEST()
375 zassert_equal(-ENOSPC, add_txt_record(&nasxxxxxx, ttl, offset, in ZTEST()
383 const uint32_t ttl = DNS_SD_SRV_TTL; in ZTEST() local
398 int actual_int = add_srv_record(&nasxxxxxx, ttl, in ZTEST()
413 add_srv_record(&nasxxxxxx, ttl, DNS_SD_PTR_MASK, in ZTEST()
420 zassert_equal(-E2BIG, add_srv_record(&nasxxxxxx, ttl, in ZTEST()
428 zassert_equal(-ENOSPC, add_srv_record(&nasxxxxxx, ttl, in ZTEST()
439 const uint32_t ttl = DNS_SD_A_TTL; in ZTEST() local
452 int actual_int = add_a_record(&nasxxxxxx, ttl, host_offset, in ZTEST()
463 add_a_record(&nasxxxxxx, ttl, DNS_SD_PTR_MASK, in ZTEST()
468 zassert_equal(-ENOSPC, add_a_record(&nasxxxxxx, ttl, in ZTEST()
477 const uint32_t ttl = DNS_SD_AAAA_TTL; in ZTEST() local
494 int actual_int = add_aaaa_record(&nasxxxxxx, ttl, host_offset, in ZTEST()
505 add_aaaa_record(&nasxxxxxx, ttl, DNS_SD_PTR_MASK, in ZTEST()
512 add_aaaa_record(&nasxxxxxx, ttl, host_offset, in ZTEST()
674 int ttl; in ZTEST() local
691 (void)zsock_getsockopt(v4, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, &optlen); in ZTEST()
693 zassert_equal(255, ttl, "TTL invalid (%d vs %d)", 255, ttl); in ZTEST()
714 (void)zsock_getsockopt(v6, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &ttl, &optlen); in ZTEST()
716 zassert_equal(255, ttl, "Hoplimit invalid (%d vs %d)", 255, ttl); in ZTEST()