Re: [PATCH 1/2] netconfig: Set preferred lifetimes on DHCP addresses
Denis Kenzior <[email protected]>
| Newsgroups | dev.linux.lists.ell |
|---|---|
| Message-ID | <[email protected]> |
Hi Andrew, On 10/7/22 13:02, Andrew Zaborowski wrote: > We receive one lease lifetime value for a DHCP lease so we were setting > the preferred lifetime for the RTNL address to 0 and the valid lifetime > to the lease lifetime. If either value is non-zero rtnl.c will send > both to the kernel and the 0 preferred lifetime is treated as literal > zero and the address becomes deprecated immediately. This doesn't > matter for most usages but systemd-resolved would check whether a link > has a non-deprecated address before setting the link's > "unicast_relevant" flag and internally wouldn't create a DNS "scope" on > the link or set its "DefaultRoute" flag both of which are required for > it to want to resolve names. > --- > ell/netconfig.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Both applied, thanks. Regards, -Denis