2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00
Commit Graph

755 Commits

Author SHA1 Message Date
Tomek Mrugalski
e7d1bd6af4 [5437] Changes after review
- some comments added
 - unit-tests renamed
 - using C++11 syntax to simplify things.
2018-03-02 16:06:13 +01:00
Thomas Markwalder
c462088602 [5553] Addressed review comments
Adjusted for addition DHCP types, changed log
    message to INFO level.
2018-03-01 10:06:46 -05:00
Thomas Markwalder
f202ec600b [5551] kea-dhcp4 now attempts to process packets with truncated VIVSO
src/lib/dhcp/option.h
    SkipRemainingOptionsError - new error to signal
    that unpacking skipped options
src/lib/dhcp/option_vendor.cc
    OptionVendor::unpack() - modified to throw
    SkipRemainingOptions on truncated length

src/lib/dhcp/option_definition.cc
    OptionDefinition::optionFactory()
    Added catch-rethrow of SkipRemainginOptionsError

src/bin/dhcp4/dhcp4_messages.mes
    Added DHCP4_PACKET_OPTIONS_SKIPPED log message

src/bin/dhcp4/dhcp4_srv.cc
    Dhcpv4Srv::processPacket() - added explicit catch
    of SkipRemainingOptionsError which logs the error
    but allows the processing to continue.

src/bin/dhcp4/tests/dhcp4_srv_unittest.cc
    TEST_F(Dhcpv4SrvTest, truncatedVIVSOOption) -
    new test to verify skip-options logic for truncated
    vendor option

src/lib/dhcp/tests/pkt4_unittest.cc
    TEST_F(Pkt4Test, truncatedVendorLength) - new
    test that verifies Pkt4 unpacking of truncated VIVSO

src/lib/dhcp/tests/pkt_captures4.cc
    Pkt4Ptr PktCaptures::discoverWithValidVIVSO()
    Pkt4Ptr PktCaptures::discoverWithTruncatedVIVSO() -
    new captured discovers
2018-02-27 14:46:40 -05:00
Marcin Siodelski
c34b44da74 [5437] Optimized lease search in INIT_REBOOT case. 2018-02-27 10:57:11 +01:00
Thomas Markwalder
00a155547a [5553] Added specific log for possible BOOTP packets
src/bin/dhcp4/dhcp4_messages.mes
    Added DHCP4_PACKET_DROP_0009 for possible bootp packets

src/bin/dhcp4/dhcp4_srv.cc
    Dhcpv4Srv::acceptMessageType()
        rearranged a bit to test explicitly for DHCP_NOTYPE

src/bin/dhcp4/tests/dhcp4_srv_unittest.cc
    TEST_F(Dhcpv4SrvTest, acceptMessageType)
    Added tests for packets with no option 53 and for
    type > DHCPLEASEQUERYDONE
2018-02-23 09:15:33 -05:00
Marcin Siodelski
9dc99c08dc [5457] Addressed review comments. 2018-01-30 13:26:14 +01:00
Marcin Siodelski
f662217434 [5457] Added debug message for parking a packet. 2018-01-25 11:53:22 +01:00
Marcin Siodelski
807e45cac6 [5457] Added dhcp4_srv_configured hook point. 2018-01-23 15:24:22 +01:00
Marcin Siodelski
0ff431f984 [5457] Packet can be parked after leases4_committed callout. 2018-01-22 17:50:05 +01:00
Marcin Siodelski
25fa13fad5 [5457] Pass IOService to the leases4_committed hook point. 2018-01-22 10:47:11 +01:00
Marcin Siodelski
735f414d4a [5457] Implemented PoC for packets parking. 2018-01-22 10:47:11 +01:00
Marcin Siodelski
8afc4716ad [5457] Created leases4_committed hook point. 2018-01-22 10:47:11 +01:00
Francis Dupont
7e4953a9c9 [5404] Finished 4o6 code 2017-12-23 22:59:15 +01:00
Francis Dupont
f80901e075 [5404] Implemented DHCPv4 port relay 2017-12-19 23:29:58 +01:00
Francis Dupont
4d759e30e1 [5443] Checkpoint: updated DHCPv6 (todo hook tests) 2017-12-16 00:45:06 +01:00
Francis Dupont
2aaedcdebe [5443] Moved to extra argument vs deconst 2017-12-15 18:30:59 +01:00
Francis Dupont
1d7c894188 [5443] Checkpoint: proposed code for dhcp4, todo new tests and dhcp6 port 2017-12-15 00:53:20 +01:00
Marcin Siodelski
7d46d89102 [5442] Addressed review comments. 2017-12-11 11:29:27 +01:00
Marcin Siodelski
075aedcef0 [5442] Add log messages when packet is dropped. 2017-12-05 11:37:04 +01:00
Marcin Siodelski
cff0cf5a8a [5442] Store network states in DHCPv4 and DHCPv6 servers. 2017-12-01 17:13:11 +01:00
Francis Dupont
f848c18c0a [5374] Final cleanup 2017-11-28 00:23:45 +01:00
Francis Dupont
1db3a9656f [5374] Fixed options in DHCPv4 pool 2017-11-27 15:03:17 +01:00
Francis Dupont
033b5a941e [5374] Checkpoint before updting syntax 2017-11-27 02:59:59 +01:00
Francis Dupont
90e7147bf3 [5374] checkpoint (todo doc and dhcp6 tests) 2017-11-24 18:39:44 +01:00
Francis Dupont
4edac2d90e [5374] Updated ClientClasses definition 2017-11-24 01:07:17 +01:00
Francis Dupont
d0d611d0e7 [master] Finishing merge of trac5277 (bootp parameters) 2017-10-23 15:23:16 +02:00
Marcin Siodelski
1cba244397 [5376] Addressed review comments.
Updated User's Guide and rename function.
2017-10-17 17:21:27 +02:00
Marcin Siodelski
62f0e9a53a [5376] Accept explicitly configured server identifiers in inbound msgs. 2017-10-17 11:23:37 +02:00
Marcin Siodelski
730c4de28d [5376] Assign configured server identifier in outbound messages. 2017-10-12 11:40:49 +02:00
Marcin Siodelski
07ce52ee4c [master] Merge branch 'trac5364'
# Conflicts:
#	src/bin/dhcp6/tests/config_parser_unittest.cc
2017-10-11 10:04:16 +02:00
Marcin Siodelski
0493ac3580 [5377] Corrected DHCP4_PACKET_SEND log message. 2017-10-06 12:48:04 +02:00
Marcin Siodelski
2a453ec2f6 [5377] DHCPv4 server now respects the outbound-interface setting. 2017-10-06 12:39:08 +02:00
Marcin Siodelski
7e03503ebc [5364] Added log messages to the DHCP servers about dynamic subnet change. 2017-10-03 20:00:52 +02:00
Francis Dupont
f8aaf42fc5 [5277] Extended server-hostname and boot-file-name (native for subnet4, else inherited) 2017-10-01 23:20:38 +02:00
Thomas Markwalder
044bb373c6 [5359] Moved v4 DNS remove logic from alloc engine to the server
Moved logic to test FQDN for differences from AllocEngine::renewLease4()
    to Dhcpv4Srv::createNameChangeRequests(), so it can occur after we
    determine the FQDN for the "new" lease
2017-09-29 11:44:32 -04:00
Francis Dupont
a410f63250 [master] Merged trac5073a (option 43) 2017-09-26 01:43:11 +02:00
Francis Dupont
5615b95f58 [5073a] Addressed review comments 2017-09-25 15:27:54 +02:00
Francis Dupont
b6ddf11661 [5073a] Updated docs and made deferredUnpack more robust to hooks 2017-09-21 23:50:48 +02:00
Francis Dupont
743182ec97 [5073a] Main code finished 2017-09-20 22:48:58 +02:00
Francis Dupont
6a4d93f046 [5073a] Code almost finished (still need tests and doc) 2017-09-20 21:33:52 +02:00
Marcin Siodelski
521afdb269 [5306] Use match-client-id defined on shared network level. 2017-09-18 12:11:51 +02:00
Marcin Siodelski
65281a78c4 [5306] Updated DHCPv4 server to use shared networks. 2017-09-18 10:49:49 +02:00
Marcin Siodelski
6f994e6f6e [5306] Client contexts now hold multiple hosts. 2017-09-18 10:49:49 +02:00
Marcin Siodelski
76dd46f707 [master] Merge branch 'trac5305'
# Conflicts:
#	src/lib/dhcpsrv/parsers/dhcp_parsers.cc
#	src/lib/dhcpsrv/subnet.cc
#	src/lib/dhcpsrv/subnet.h
2017-09-07 18:08:35 +02:00
Marcin Siodelski
46244482dc [5305] Migrated server code and tests from Subnet class to Network class. 2017-09-05 13:02:42 +02:00
Tomek Mrugalski
129061abbe [5345] Removed DHCP{4,6}_BUFFER_WAIT{,_INTERRUPTED} messages. 2017-09-04 16:02:27 +02:00
Marcin Siodelski
2fdc7efcb8 [master] Merge branch 'trac5340' 2017-08-25 17:38:17 +02:00
Marcin Siodelski
d5fbef0914 [5340] Fixed invalid use of Pkt4::setFile and Pkt4::setSname functions. 2017-08-21 14:51:33 +02:00
Francis Dupont
3e99671764 [master] Finished merge of trac5241 (always-send) 2017-08-07 09:53:27 +02:00
Josh Soref
11ac079f22 spelling: sigchld 2017-07-23 16:42:36 -04:00