Prefix Delegation

35 views
Skip to first unread message

Michael Thorsager

unread,
Oct 11, 2012, 10:57:36 AM10/11/12
to jagornet-d...@googlegroups.com
Hello there.. 
I'm messing around with getting some DHCPv6 up and  running..

But I'm having trouble with a client that puts [::] in requested prefix, which results  in.. 
<snip>
DhcpIaPrefixOption
<xml-fragment>
  <prefixLength>56</prefixLength>
  <ipv6Prefix>0:0:0:0:0:0:0:0</ipv6Prefix>
  <preferredLifetime>0</preferredLifetime>
  <validLifetime>0</validLifetime>
</xml-fragment>
....
2012-10-11 16:39:37,749 [pool-3-thread-4] WARN  binding.BaseBindingManager - No BindingPool found for requested client address: 0:0:0:0:0:0:0:0
2012-10-11 16:39:37,749 [pool-3-thread-4] WARN  binding.BaseBindingManager - Requested prefix is not available, returning
2012-10-11 16:39:37,750 [pool-3-thread-4] WARN  binding.BaseBindingManager - Failed to create solicit binding
</snip>

and no prefix is returned to client..

I'm guessing that It is a problem with the BaseBindingManager, trying to find a pool containing 0:0:0:0:0:0:0:0 which
fails.. but my thought is that if a client requests [::] prefix it should be handled as if no prefix was requested?

Greg Rabil

unread,
Oct 11, 2012, 11:48:04 AM10/11/12
to jagornet-d...@googlegroups.com
Hi Michael,
It does appear that the server is failing to handle this case properly.  I agree that the behavior should be as if no prefix was requested.  We will investigate the issue further, and create a bug as needed.

Thanks,
Greg Rabil

Michael Thorsager

unread,
Oct 12, 2012, 12:07:59 PM10/12/12
to jagornet-d...@googlegroups.com
Great :-)

To get on with my research I created this little patch..
I know it is a hack and it might not be the right place to implement the change but well, 
got the Prefix Delegation working which means that I can go on testing.  

The server is really great stuff and I'm sure I'll be messing a lot more with it in the future.. 
//mit
jagornet-dhcpv6-2.0.0-beta_zeroaddr_v6.patch

Michael Thorsager

unread,
Oct 12, 2012, 12:49:18 PM10/12/12
to jagornet-d...@googlegroups.com

Ah forgot also moved the nullPointer exception stuff to the Prefix ;-)
//mit
jagornet-dhcpv6-2.0.0-nullPointer.patch

Greg Rabil

unread,
Nov 7, 2012, 7:31:35 PM11/7/12
to jagornet-d...@googlegroups.com
Hi Michael,
Thank you for reporting this bug.  This is also an issue with DHCPv6 clients that request zero address.  Issue 16 was created and fixed to resolve this issue in r173 on the Google Code SVN repository.  The change is slightly different from yours, but we appreciate your pinpointing the faulting code.

Regards,
Greg Rabil

Greg Rabil

unread,
Nov 7, 2012, 7:34:52 PM11/7/12
to jagornet-d...@googlegroups.com
Hi Michael,
Thank you for bringing this to our attention.  Issue 17 has been created and fixed to resolve this in r174 of the Google Code SVN repository.

Regards,
Greg Rabil

Michael Thorsager

unread,
Nov 8, 2012, 1:21:33 AM11/8/12
to jagornet-d...@googlegroups.com
No problem at all :-) just glad I could helpe..
The server is great stuff.. I'm currently messing about with Filters, and actually I have some
questions, but I thing I would be appropriate to start A new thread, so I'll do that
//mit
Reply all
Reply to author
Forward
0 new messages