Tomek Mrugalski
c0a5754597
[3563] ClientContext6 implemented.
2015-01-12 18:34:04 +01:00
Marcin Siodelski
a3dc1f1954
[3564] Addressed review comments.
2014-12-19 19:19:36 +01:00
Tomek Mrugalski
b448b5cbd2
[3564] Compilation fix.
2014-12-19 14:19:20 +01:00
Marcin Siodelski
30d482b258
[3564] Improved commentary for the allocation engine.
2014-12-15 14:16:03 +01:00
Marcin Siodelski
86ee314ed4
[3564] Implemented tests for address conflicts resolution.
...
The new tests are implemented using the Dhcp4Client class. It has been
found that the server returns DHCPNAK in response to DHCPDISCOVER which
was wrong. Now, the server doesn't respond to DHCPDISCOVER if it can't
find an address. As a result, a number of tests had to be fixed which
relied on this invalid behavior.
2014-12-15 10:56:16 +01:00
Marcin Siodelski
dd8b2fdc1b
[3564] Fix failing unit tests after the updates to the allocation engine.
2014-12-11 22:19:10 +01:00
Marcin Siodelski
64569e06a9
[3564] Renamed hint to requested_address in allocation engine.
2014-12-11 17:15:38 +01:00
Marcin Siodelski
e29eee4fa7
[3564] Resolve conflicts with the reserved addresses in allocation engine.
2014-12-11 17:03:24 +01:00
Marcin Siodelski
bf3ea66a3e
[3564] Updated allocateLease4 in allocation engine to use reservations.
2014-12-11 17:02:04 +01:00
Tomek Mrugalski
8f112316e6
[3555] Lease4,Lease6 now uses HWAddr structure.
2014-10-17 18:06:40 +02:00
Marcin Siodelski
c50566742f
[3295] Do not generate NameChangeRequests for Solicit.
2014-01-27 10:40:24 +01:00
Marcin Siodelski
17480c30c5
[3295] Added a unit test which checks NCR generation for expired leases.
2014-01-24 13:54:06 +01:00
Marcin Siodelski
a681bf7867
[3295] Modified allocation engine to not update lease fqdn for Solicit.
2014-01-23 20:14:46 +01:00
Marcin Siodelski
dba236c915
[3295] Modified DHCPv6 allocation engine to return old lease.
2014-01-23 17:41:32 +01:00
Marcin Siodelski
1d1e8b67f6
[1283] Use IOAddress << operator in remaining places in DHCP code.
2014-01-16 16:07:39 +01:00
Tomek Mrugalski
a019cd162f
[3171] Changes after review:
...
- allocateLease6 => allocateLeases6()
- consts added
- consts removed
- comments added, expanded, clarified, capitalized
2013-10-02 20:31:23 +02:00
Tomek Mrugalski
b48106123d
[3171] Pool::toText() implemented, exception error in AllocEngine clarified
2013-10-02 13:11:11 +02:00
Tomek Mrugalski
e096608605
[3171] alloc{Address -> Lease} rename, compilation fixes
2013-09-24 11:25:55 +02:00
Tomek Mrugalski
c83724e334
[3171] Documentation and comments updated
2013-09-24 11:00:05 +02:00
Tomek Mrugalski
3e08c03f16
[3171] First test implementing PD lease allocation passed!
2013-09-19 19:38:05 +02:00
Tomek Mrugalski
4b7664ccfd
[3171] IterativeAllocator::pickAddress() now handles prefixes as well
...
- pickAddress() handles prefixes as well
- Subnet::delPools() implemented
- tests for iterating over address and prefix pools implemented.
2013-09-19 18:35:32 +02:00
Tomek Mrugalski
e295438305
[3171] AllocEngine work: increasePrefix() added, prefix_len passed around
2013-09-19 17:06:03 +02:00
Tomek Mrugalski
f8bbd7fa7d
[3149] Minor changes after review (spaces, comments clean ups)
2013-09-19 11:20:50 +02:00
Tomek Mrugalski
d7d74b3493
[3149] getAllocator() implemented
2013-09-18 16:29:26 +02:00
Tomek Mrugalski
b190045d32
[3149] Compilation fix
2013-09-18 15:49:48 +02:00
Tomek Mrugalski
a26a75c948
[3149] Lease6::LeaseType and Pool::PoolType unified.
2013-09-18 15:44:48 +02:00
Tomek Mrugalski
b1217e6910
[master] Merge branch 'trac3150' (DHCP::CfgMgr support for PD)
...
Conflicts:
ChangeLog
2013-09-17 17:40:16 +02:00
Tomek Mrugalski
e6f0e89162
[3150] Changes after review:
...
- lease_type_ renamed to pool_type_
- exception message clarified
- prefix lengths comment updated
- couple EXPECT_NO_THROWs added to subnet unit-tests
2013-09-17 13:55:38 +02:00
Tomek Mrugalski
22b8b335e3
[3150] checkType in Subnets implemented
2013-09-16 13:55:18 +02:00
Tomek Mrugalski
f6619e644f
[3150] Support for different pool types in subnet implemented
2013-09-16 12:46:12 +02:00
Tomek Mrugalski
154fbc8f1d
[3150] First part of prefix pool support
2013-09-10 20:39:04 +02:00
Tomek Mrugalski
681def2806
[3146] getLease6 renamed to getLeases6(), single lease getLease6() added
2013-09-06 18:16:50 +02:00
Tomek Mrugalski
95729b096e
[3146] getLease6() methods now have extra param: LeaseType
2013-09-06 14:51:59 +02:00
Marcin Siodelski
8c203f0a83
[3083] Fixed typos in allocation engine, as a result of the review.
2013-08-27 07:50:54 +02:00
Marcin Siodelski
21b9e729ef
[3083] Merge branch 'master' into trac3083
...
Conflicts:
src/lib/dhcpsrv/alloc_engine.cc
src/lib/dhcpsrv/alloc_engine.h
src/lib/dhcpsrv/tests/alloc_engine_unittest.cc
2013-08-27 07:21:29 +02:00
Tomek Mrugalski
8ab644fc53
[master] Merge branch 'trac2983' (4 extra hooks for DHCPv4)
...
Conflicts:
ChangeLog
2013-08-23 13:59:01 +02:00
Tomek Mrugalski
fd47f18f89
[2983] Changes after review:
...
- hooks documentation updated
- dhcp4 message logs updated
- long lines wrapped in dhcp4_srv.cc
- unit-test names now use camel notation
- Pkt4::bufferOut_ renamed to buffer_out_
2013-08-23 11:26:36 +02:00
Marcin Siodelski
9fab3d3a01
[3083] Unit test setting FQDN lease parameters.
2013-08-21 14:23:42 +02:00
Marcin Siodelski
18dc9853c0
[3083] Extended Allocation Engine API to pass the FQDN data.
2013-08-21 13:54:28 +02:00
Marcin Siodelski
bf6d6bcddd
[3083] Allocation engine returns a copy of the previous lease instance.
2013-08-21 12:15:21 +02:00
Tomek Mrugalski
1f4b736004
[2983] lease4_renew unit-tests implemented.
2013-08-20 18:42:06 +02:00
Marcin Siodelski
3bc0e24e4d
[3083] Return the old lease instance when new lease is acquired.
2013-08-20 18:00:13 +02:00
Tomek Mrugalski
4cd6015489
[2983] Remaining v4 hooks implemented.
2013-08-19 15:08:08 +02:00
Marcin Siodelski
646a473854
[3036] Merge branch 'master' into trac3036
...
Conflicts:
src/bin/dhcp6/dhcp6_messages.mes
src/bin/dhcp6/dhcp6_srv.cc
src/bin/dhcp6/dhcp6_srv.h
src/bin/dhcp6/tests/dhcp6_srv_unittest.cc
src/lib/dhcp_ddns/tests/ncr_unittests.cc
src/lib/dhcpsrv/alloc_engine.cc
src/lib/dhcpsrv/alloc_engine.h
src/lib/dhcpsrv/tests/alloc_engine_unittest.cc
2013-08-13 18:59:53 +02:00
Marcin Siodelski
87e43d5dfd
[3036] Generate NameChangeRequests for Solicit, Request, Renew and Release.
2013-07-26 17:39:14 +02:00
Tomek Mrugalski
89d6be56ee
[2994] Changes after review:
...
- pointers to DHCPv4 and DHCPv6 hooks removed
- Many methods in HooksManager are now called directly in
dhcp4_srv.cc, dhcp4_srv_unittest.cc and alloc_engine_unittest.cc
- Comments wrapped up differently in dhcp4_srv_unittest.cc
- Comments clarified in alloc_engine.{cc|h}
2013-07-19 15:54:02 +02:00
Tomek Mrugalski
ecd9691c17
[2994] Comments fixes in Dhcpv4Srv and AllocEngine code.
2013-07-16 15:47:32 +02:00
Tomek Mrugalski
a8a8909b51
[2994] Outstanding tests for lease4_select implemented.
2013-07-16 13:24:44 +02:00
Tomek Mrugalski
5b10e071de
[2994] lease4_select hook implemented.
2013-07-16 11:45:47 +02:00
Tomek Mrugalski
14018a4e7e
[2995] Changes after review:
...
- callouts called using HooksManager::callCallouts
- removed Dhcp6Srv::getServerHooks() and getHooksManager() declarations.
- updated sendPacket comment (reception->transmission)
- documented getCalloutHandle()
- indentation fixed for getSubnets6()
2013-07-12 14:28:01 +02:00