Comment 8 for bug 1089989

Revision history for this message
Gerard Dethier (g-dethier) wrote :

Scott,

Sorry, it seems I did not go enough into details with this patch.

* Regarding Ubuntu's "dhclient leases" directory, you are totally right. I only tested on Fedora and CentOS but did not think that Ubuntu (and Debian?) distros use another directory. Search in both directories should indeed be implemented and configurable in the way you mention.

* For the multiple lease files, it seems the matter is rather "complex" as a single file may actually contain several leases (fortunately, they all seem to come from same DHCP server), some of them being expired. Your solution to consider the youngest lease file and, if there is an ambiguity, fall-back on previous approach (choosing default route) is probably the best as it should work in most cases.

Unfortunately, I will not be able to work on this soon. I can submit a new patch in 1-2 weeks if it is OK...