-
David Johnson authored
From the comments: Work around dhclient-scripts that forcibly set preferred_lft and valid_lft. We cannot override the lease time sent from the server with a real infinite value (our best bet would be UINT32_MAX, and that sucks), so we intercept dhclient's name for the new lease time it's about to feed to the ip command. Does this suck any less? We cannot ex post facto run `ip addr change ...` just to reset the preferred_lft and valid_lft fields to "forever"; that seems to be tightly coupled with assigning an address to an interface (and we don't want to re-add the address; that is the whole point of dhclient-script!). (Some dhclients also do not process "expire never" in dhclient.conf correctly, so this is what we are left with!)
095f2ce1