host-name encoding

David W. Hankins David_Hankins at isc.org
Wed Oct 26 16:11:37 UTC 2005


On Tue, Oct 25, 2005 at 05:32:34PM -0700, Ted Lemon wrote:
> My main concern would be how it's stored in the lease file.   If it's stored 
> in xx:xx:xx notation in a lease file, then when you change the format, you 
> could get some nasty read errors and lost leases.   But I think it's only 
> stored in the client lease file, where a lost lease is no real problem, so I 
> think it's okay.

The hostname is recorded as "client-hostname" in the server leases db,
but that's literally lease->client_hostname, so the format string is no
longer attached.

Client is a problem.


I suppose we could make another transitionary format.  's'?  For printing,
it directly translates into a 't'.  For parsing, it tries 'X', which may
lead it back to 't', if I remember right.

-- 
David W. Hankins		"If you don't do it right the first time,
Software Engineer			you'll just have to do it again."
Internet Systems Consortium, Inc.		-- Jack T. Hankins


More information about the dhcp-hackers mailing list