<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:x="urn:schemas-microsoft-com:office:excel" 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 14 (filtered medium)"><style><!--
/* Font Definitions */
@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;}
@font-face
{font-family:"Arial Narrow";
panose-1:2 11 6 6 2 2 2 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
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;}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
{mso-style-priority:1;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";
mso-fareast-language:EN-US;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Times New Roman","serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-fareast-language:EN-US;}
.MsoPapDefault
{mso-style-type:export-only;
margin-bottom:4.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></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=RU link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>Hi Jonathan,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>There’s quick fix for your issue, if client hasn’t specified preferred address lifetime, lease time is used. Valid timeout value is still ignored.<o:p></o:p></span></p><p class=MsoNormal><a href="http://wl500g.googlecode.com/svn/trunk/dnsmasq/110-no-lifetime-preference.patch"><span lang=EN-US>http://wl500g.googlecode.com/svn/trunk/dnsmasq/110-no-lifetime-preference.patch</span></a><span lang=EN-US style='font-size:11.0pt;color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:#1F497D'>Best Regards</span><span style='font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:#1F497D'>, </span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:#1F497D'>Vladislav Grishenko<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><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>Jonathan Fabian<br><b>Sent:</b> Thursday, August 01, 2013 4:06 AM<br><b>To:</b> dnsmasq-discuss@lists.thekelleys.org.uk<br><b>Subject:</b> [Dnsmasq-discuss] DHCPv6 Server not respecting lease time setting<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal style='margin-bottom:4.0pt'>Hi,<o:p></o:p></p><div><p class=MsoNormal style='margin-bottom:4.0pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-bottom:4.0pt'>I'm seeing some strange behavior between my mac and dnsmasq (running on arch linux arm) when getting assigned an IPv6 address. Specifically, I have the DHCPv6 set to give out a 12 hour lease time: dhcp-range=a:b:c::1, a:b:c::ff, 64, 12h, but it will only give the mac a 2 min lease time (as a side note, I have also tried setting a dhcp host option specifically for macs duid and it ignores those lease time values as well). The lease time setting works fine with the windows machines on the same network.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:4.0pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-bottom:4.0pt'>Looking at the network packets, I see the mac solicit the dhcp server, the dhcp server replies with an advertisement message offering an ip address with a valid and preferred lifetime of 43200, then the mac replies with a request for the advertised ip address with the valid and preferred lifetimes set to 0 (which looking at rfc3315 should be treated as no preference), dnsmasq then sends back a reply with the address but the valid and preferred lifetimes only set to 120 (the min time allowed)!<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:4.0pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-bottom:4.0pt'>The only difference I can see with the windows machines is that when a windows machine sends the request message they copy the preferred and valid lifetimes of 43200 from the advertise message. <o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:4.0pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-bottom:4.0pt'>Maybe I'm wrong, but it seems that dnsmasq should always be ignoring the 0 when sent, and only treating the valid and preferred lifetimes from the client as a request at best. It seems, however, to be treating them in a manner that overrides the explicitly configured setting in its config files. Can anyone shed some light on this behavior?<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:4.0pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-bottom:4.0pt'>Thanks,<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:4.0pt'>Jonathan<o:p></o:p></p></div></div></div></div></body></html>