BIND 10 #1540: dhcp code refactor: Pkt6 and Options for DHCPv6

BIND 10 Development do-not-reply at isc.org
Fri Apr 20 16:56:30 UTC 2012


#1540: dhcp code refactor: Pkt6 and Options for DHCPv6
-------------------------------------+-------------------------------------
                   Reporter:  tomek  |                 Owner:  tomek
                       Type:         |                Status:  reviewing
  enhancement                        |             Milestone:  Sprint-
                   Priority:         |  DHCP-20120402
  medium                             |            Resolution:
                  Component:  dhcp   |             Sensitive:  0
                   Keywords:         |           Sub-Project:  DHCP
            Defect Severity:  N/A    |  Estimated Difficulty:  0
Feature Depending on Ticket:         |           Total Hours:  0
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------
Changes (by stephen):

 * owner:  stephen => tomek


Comment:

 '''src/bin/dhcp6/dhcp6_srv.cc'''
 >> Dhcp6Srv::setServerID() - should use the isRangeZero() function added
 as part of this set of changes.
 > Fixed.
 I've removed the now-unecessary declaration of {{{zeros}}} from
 Dhcpv6Srv::setServerID() and pushed the change.


 '''src/lib/dhcp/iface_mgr.cc'''
 >> There appears to be no reason why "buf" should be declared static - it
 is not referenced outside this function.
 > Performance reasons. We can reuse the same region of heap, rather than
 requiring 1500 to be reserved on stack. I admit that expected benefit of
 such approach is rather slim.
 I don't think it is even that - reserving it on the stack just means that
 a larger number will be substracted from the stack pointer than otherwise
 would be the case.

 '''Other'''[[BR]]
 Running the tests gave me:
 {{{
 Running test: dhcp6_test.py
 [b10-dhcp6] Server failed: Failed to bind socket 4 to
 fe80::221:91ff:fe7e:55de/port=547
 /usr/lib/python3.2/unittest/case.py:370: ResourceWarning: unclosed file
 <_io.FileIO name=7 mode='wb'>
   function()
 }}}
 ... but the system did not report an error.

 (The IP address printed is the one associated with my Wireless LAN
 interface)

-- 
Ticket URL: <http://bind10.isc.org/ticket/1540#comment:17>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list