Subject: Re: netbsd DHCP vendor class identifier (VCI)
To: Simon Burge <simonb@wasabisystems.com>
From: Garrett D'Amore <garrett_damore@tadpole.com>
List: tech-kern
Date: 11/10/2005 19:03:09
Simon Burge wrote:

>"Steven M. Bellovin" wrote:
>
>  
>
>>In message <4373EB41.2040905@tadpole.com>, "Garrett D'Amore" writes:
>>    
>>
>>>Hi,
>>>
>>>I've noticed that the NetBSD in-kernel DHCP client sends a vendor class 
>>>identifier which is made up as follows:
>>>
>>>   snprintf(vci, sizeof(vci), "%s:%s:kernel:%s", ostype, MACHINE,
>>>       osrelease);
>>>
>>>      
>>>
>>In-kernel dhcp client?  I don't think there is one on NetBSD.
>>    
>>
>
>The nfs bootcode can use dhcp requests - see nfs/nfs_bootdhcp.c,
>in particular bootpc_call().  Using the word "client" may be a bit
>generous - the kernel doesn't worry about leases, etc.
>  
>
Yes, and this particular code is used to determine the root file system 
to mount (assuming a diskless NFS system).

(I may have been too generous when I said "client"....)

    -- Garrett