<HTML>
<HEAD>
<TITLE>Re: [Dnsmasq-discuss] Option 66 Bug?</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I&#8217;ve tried doing that already (wireshark)<BR>
<BR>
Because its a phone making the request, I am not able to tcpdump on the phone, of course, and because the router has such little space, I am not able to get tcpdump on &nbsp;to it.<BR>
<BR>
I did do a tcpdump while doing a dhcp request from my mac, and I do not see the option 66 packet in the response at all. &nbsp;I&#8217;m not familiar enough with DHCP to know if there are conditions in which Option 66 is sent or not sent (does the DHCP requesting device have to ask the DHCP server for it?)<BR>
<BR>
<BR>
On 3/26/10 1:50 PM, &quot;richardvoigt@gmail.com&quot; &lt;richardvoigt@gmail.com&gt; wrote:<BR>
<BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>On Fri, Mar 26, 2010 at 2:53 PM, Dayton Turner &lt;dayton@voxter.ca&gt; wrote:<BR>
&gt; Richard,<BR>
&gt;<BR>
&gt; I tried setting the option 66 value to the IP that you suggested, and got<BR>
&gt; the same results.  First &#8220;7&#8221; is stripped..  Interesting, I don&#8217;t know if<BR>
&gt; this presents anything of interest to you, but if I set the value to begin<BR>
&gt; with &#8220;774.&#8221; it strips both 7&#8217;s. Almost like its looking for the option to<BR>
&gt; start with a 7 and removing any of them?<BR>
&gt;<BR>
&gt; Dayton<BR>
<BR>
Well that seems like it's not a length issue. &nbsp;Of course, 774 isn't a<BR>
valid octet at all, I'm surprised that it would even parse. &nbsp;But maybe<BR>
it doesn't get parsed if that option is sent as a string rather than<BR>
an IP address.<BR>
<BR>
Can you use wireshark to capture the packet dnsmasq sends? &nbsp;That's<BR>
similar to DHCP logging, better in some ways and not in others.<BR>
<BR>
<BR>
&gt;<BR>
&gt;<BR>
&gt; On 3/26/10 6:16 AM, &quot;richardvoigt@gmail.com&quot; &lt;richardvoigt@gmail.com&gt; wrote:<BR>
&gt;<BR>
&gt; On Fri, Mar 26, 2010 at 1:35 AM, Dayton Turner &lt;dayton@voxter.ca&gt; wrote:<BR>
&gt;&gt; Hi List,<BR>
&gt;&gt;<BR>
&gt;&gt; I have some VoIP phones here that get their DHCP from dnsmasq running on a<BR>
&gt;&gt; dd-wrt router.  Usually this all works great, I had been handing out DHCP<BR>
&gt;&gt; Option 66 as such up until now:<BR>
&gt;&gt;<BR>
&gt;&gt; dhcp-option=66,&#8221;69.90.91.195&#8221;<BR>
&gt;&gt;<BR>
&gt;&gt; Well we recently had to change our IP block, to something that starts with<BR>
&gt;&gt; a<BR>
&gt;&gt; 7.  74.141.209.195. When I update the dnsmasq config to read<BR>
&gt;&gt;<BR>
&gt;&gt; dhcp-option=66,&#8221;74.141.209.195&#8221;<BR>
&gt;&gt;<BR>
&gt;&gt; The phones (I tried an Aastra phone, and a Citel phone) both only receive<BR>
&gt;&gt; &#8216;4.141.209.195&#8217; trimming the leading 7 off.<BR>
&gt;&gt;<BR>
&gt;&gt; Any ideas?<BR>
&gt;<BR>
&gt; I note that your new configuration is also longer as measured by<BR>
&gt; strlen.  Perhaps this is related?  i.e. what would happen if the IP<BR>
&gt; address were changed to 74.141.209.5 ?<BR>
&gt;<BR>
&gt;&gt;<BR>
&gt;&gt; Dayton<BR>
&gt;&gt;<BR>
&gt;&gt; _______________________________________________<BR>
&gt;&gt; Dnsmasq-discuss mailing list<BR>
&gt;&gt; Dnsmasq-discuss@lists.thekelleys.org.uk<BR>
&gt;&gt; <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><BR>
&gt;&gt;<BR>
&gt;&gt;<BR>
&gt;<BR>
&gt;<BR>
<BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>