rdisc: fix parsing ndp_msg_opt_dnssl_lifetime() from IPv6 RA

Fixes: c3a4656a68 ('rdisc: libndp implementation')
(cherry picked from commit d1181533b8)
This commit is contained in:
Thomas Haller 2020-03-25 11:16:11 +01:00
parent 5ab7794266
commit b28eee1c4b
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -260,7 +260,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