rdisc: fix parsing ndp_msg_opt_dnssl_lifetime() from IPv6 RA

Fixes: c3a4656a68 ('rdisc: libndp implementation')
This commit is contained in:
Thomas Haller 2020-03-25 11:16:11 +01:00
parent 1704507c49
commit d1181533b8

View file

@ -258,7 +258,7 @@ receive_ra (struct ndp *ndp, struct ndp_msg *msg, gpointer user_data)
NMNDiscDNSDomain dns_domain = {
.domain = domain,
.timestamp = now,
.lifetime = ndp_msg_opt_rdnss_lifetime (msg, offset),
.lifetime = ndp_msg_opt_dnssl_lifetime (msg, offset),
};
/* Pad the lifetime somewhat to give a bit of slack in cases