Home
last modified time | relevance | path

Searched refs:opt_rdnss (Results 1 – 1 of 1) sorted by relevance

/systemd-251/src/libsystemd-network/
Dsd-radv.c763 _cleanup_free_ struct sd_radv_opt_dns *opt_rdnss = NULL; in sd_radv_set_rdnss() local
778 opt_rdnss = malloc0(len); in sd_radv_set_rdnss()
779 if (!opt_rdnss) in sd_radv_set_rdnss()
782 opt_rdnss->type = RADV_OPT_RDNSS; in sd_radv_set_rdnss()
783 opt_rdnss->length = len / 8; in sd_radv_set_rdnss()
784 opt_rdnss->lifetime = htobe32(lifetime); in sd_radv_set_rdnss()
786 memcpy(opt_rdnss + 1, dns, n_dns * sizeof(struct in6_addr)); in sd_radv_set_rdnss()
788 free_and_replace(ra->rdnss, opt_rdnss); in sd_radv_set_rdnss()