> I put the following comments in the bug: > > I wonder, has the lease expired while the host was suspended? Maybe > an attempt to renew a lease is not possible because the address has > been given out elsewhere while the system was suspended? > > It strikes me that dhcp is probably one of those few bits of > software that needs to "know" about a S/R cycle. In this case, I > think setting up a signal handler for SIGTHAW could enable it to > know when it has been resumed, and logic added to reacquire an > address (perhaps not just asking for a renewal, but for a whole new > address if necessary). > > The other possible thing to look at, I suppose, is the MAC address > -- ensure that the MAC address on resume is the same as it was on > suspend. If that is not correct, it is indicative of a driver bug. > > Its probably just a matter of teaching dhcp about resume.
The DHCP client knows about resume, and has had a SIGTHAW handler for the past decade. The fact that gethrtime() doesn't move across SIGTHAW and that wall clock changes should not affect lease expiration requires some subtle code, too. -- meem _______________________________________________ networking-discuss mailing list [email protected]
