<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Folks</div>
<div>We are using dnsmasq with dhcp-hostsfile configured with several <hwaddr>,<ipaddr>,<hostname> tuples. </div>
<div>When I run my udhcpc client on an interface with a MAC address equal to <hwaddr> I get the correct <ipaddr>. </div>
<div><br>
</div>
<div>However what I want to do is to match the <hwaddr> with client identifier supplied in the DHCP discover message (using the –x option with opt being 0x3d I.e “-x 0x3d:01aabbccddeeff” in udhcpc). </div>
<div><br>
</div>
<div>This does NOT work! Looking at the code it looks like the function that reads the dhcp-hostsfile (dhcp_read_ethers()) does not explicitly support client identifier option (sets the CONFIG_NOCLID flag). As a result find_config() function fails to do a match
 based on CONFIG_CLID. </div>
<div><br>
</div>
<div>So my questions are the following:</div>
<ul>
<li>Am I reading this correctly? If not, any suggestions on how to satisfy the above requirements?</li><li>If yes, Is this deliberate as per DHCP standard (Sorry I have not gone through the standard in detail)?
<ul>
<li>Specifically, would supporting CONFIG_CLID option create a security hole. Any thoughts? If yes, then shouldn’t “—dhcp-host” option fall into the same category?</li></ul>
</li></ul>
<div><br>
</div>
<div>Appreciate your help!</div>
<div><br>
</div>
<div>Thanks - Sam</div>
<div><br>
</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE"></div>
</div>
</body>
</html>