<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<title>Re: [Dnsmasq-discuss] Option 66 Bug?</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Have you tried it without the double quotes?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>dhcp-option=66,69.90.91.195<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Don<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
dnsmasq-discuss-bounces@lists.thekelleys.org.uk
[mailto:dnsmasq-discuss-bounces@lists.thekelleys.org.uk] <b>On Behalf Of </b>Dayton
Turner<br>
<b>Sent:</b> Friday, March 26, 2010 4:55 PM<br>
<b>To:</b> richardvoigt@gmail.com<br>
<b>Cc:</b> dnsmasq-discuss@lists.thekelleys.org.uk<br>
<b>Subject:</b> Re: [Dnsmasq-discuss] Option 66 Bug?<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif"'>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:</span><o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif"'>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. &nbsp;First &#8220;7&#8221; is stripped..
&nbsp;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. &nbsp;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. &nbsp;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. &nbsp;Perhaps this is related? &nbsp;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;</span><o:p></o:p></p>

</div>

</div>

</body>

</html>