1. 10 Jan, 2020 1 commit
  2. 24 Oct, 2019 1 commit
  3. 06 Sep, 2019 2 commits
    • Thomas Markwalder's avatar
      [#821,!501] Addressed review comments · 60baf65d
      Thomas Markwalder authored
          src/bin/dhcp4/tests/dhcp4_srv_unittest.cc
              Cleaned up failure text
      
          src/lib/testutils/gtest_utils.h
              Replaced array with vector
      60baf65d
    • Thomas Markwalder's avatar
      [#821,!501] kea-dhcp4 now sanity checks inbound messages · 83d5b633
      Thomas Markwalder authored
      src/bin/dhcp4/dhcp4_srv.cc
          Dhcpv4Srv::processRequest()
          Dhcpv4Srv::processRelease()
          Dhcpv4Srv::processDecline()
          Dhcpv4Srv::processInform() - now all call sanityCheck()
      
      src/bin/dhcp4/tests/dhcp4_srv_unittest.cc
          TEST_F(Dhcpv4SrvTest, sanityCheckDiscover)
          TEST_F(Dhcpv4SrvTest, sanityCheckRequest)
          TEST_F(Dhcpv4SrvTest, sanityCheckDecline)
          TEST_F(Dhcpv4SrvTest, sanityCheckRelease)
          TEST_F(Dhcpv4SrvTest, sanityCheckInform) - new tests
      
      src/lib/testutils/gtest_utils.h
          New file with handy new test macros:
              EXPECT_THROW_MSG()
              ASSERT_THROW_MSG()
      
      src/lib/testutils/Makefile.am
          Added new file gtest_utils.h
      
      Added a ChangeLog entry
      83d5b633
  4. 22 Jun, 2019 4 commits
  5. 19 Jun, 2019 1 commit
  6. 12 Mar, 2019 1 commit
  7. 19 Feb, 2019 3 commits
  8. 18 Jan, 2019 2 commits
  9. 09 Jan, 2019 1 commit
    • Thomas Markwalder's avatar
      [#365,!194] kea-dhcp4 can be configured to calculate T1 and T2 · 9a7cd6e0
      Thomas Markwalder authored
      doc/guide/dhcp4-srv.xml
          Updated user guide with new parameters and details on rules
      
      src/lib/cc/data.cc
          DoubleElement::toJSON(std::ostream& ss) - modified to ensure whole number
           values are suffixed with ".0"
      
      src/lib/utils/doubles.h - new file
         provides a function for equating doubles within a given tolerance
      
      src/lib/cc/simple_parser.*
          SimpleParser::getDouble() - new method for fetching real number
          parameters as DoulbeElements
      
      src/lib/dhcpsrv/network.*
          Added members and support for new paramters to Network4:
              calculate_tee_times_, t1_percent_, t2_percent_
      
      src/lib/dhcpsrv/parsers/dhcp_parsers.cc
      src/lib/dhcpsrv/parsers/simple_parser4.cc
          Added support for new parameters to Subnet4ConfigParser
      
      src/bin/dhcp4/dhcp4_lexer.ll
      src/bin/dhcp4/dhcp4_parser.yy
      src/bin/dhcp4/json_config_parser.cc
          Added parser support for calculate-tee-times, t1-percent, and t2-percent
      
      src/bin/dhcp4/dhcp4_srv.*
          Dhcpv4Srv::setTeeTimes(lease, subnet, resp) - new method for
          determining T1 adn T2 values
      9a7cd6e0
  10. 13 Jun, 2018 1 commit
  11. 07 Jun, 2018 1 commit
  12. 25 May, 2018 1 commit
    • Thomas Markwalder's avatar
      [5596] renew-timer and rebind-timer now optional for DHCPv4 · dec8d15f
      Thomas Markwalder authored
      v4 Parsing now allows renew/rebind timers to be unspecified,
      and kea-dhcp4 logic now matchs ISC DHCP:
      
      1. Send T2 only if it is specified and is less than lease lifetime
      2. Send T1 only if it is specified and is less than either T2
      if specified, or lease lifetime in the absence of T2
      
      doc/guide/dhcp4-srv.xml
          Updated discussion of rebind/renew-timers
      
      src/bin/dhcp4/dhcp4_srv.cc
          Dhcpv4Srv::assignLease() - modified to sanity check
          T1 and T2
      
      src/bin/dhcp4/tests/config_parser_unittest.cc
      src/bin/dhcp4/tests/get_config_unittest.cc
      src/bin/dhcp4/tests/simple_parser4_unittest.cc
      src/bin/dhcp6/tests/get_config_unittest.cc
      src/lib/dhcpsrv/tests/cfg_shared_networks4_unittest.cc
      src/lib/dhcpsrv/tests/cfg_shared_networks6_unittest.cc
          updated numerous tests
      
      src/lib/dhcpsrv/network.cc
          Network::toElement() - only outputs T1, T2, and
          valid lifetime if they are specified
      
      src/lib/dhcpsrv/network.h
          Network() - inits t1_, t2_, and valid_ to unspecified
          Triplet value
      
      src/lib/dhcpsrv/parsers/dhcp_parsers.cc
          Subnet4ConfigParser::initSubnet() - allow renew-timer and
          rebind-timer to be optional
      
      src/lib/dhcpsrv/parsers/simple_parser4.cc
          SimpleDefaults SimpleParser4::GLOBAL4_DEFAULTS - removed
          entries for renew-timer and rebind-timer
      dec8d15f
  13. 19 May, 2018 1 commit
  14. 16 May, 2018 1 commit
  15. 11 Apr, 2018 1 commit
  16. 04 Apr, 2018 1 commit
  17. 01 Apr, 2018 1 commit
  18. 01 Mar, 2018 2 commits
  19. 27 Feb, 2018 1 commit
    • Thomas Markwalder's avatar
      [5551] kea-dhcp4 now attempts to process packets with truncated VIVSO · f202ec60
      Thomas Markwalder authored
      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
      f202ec60
  20. 23 Feb, 2018 1 commit
    • Thomas Markwalder's avatar
      [5553] Added specific log for possible BOOTP packets · 00a15554
      Thomas Markwalder authored
      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
      00a15554
  21. 29 Jan, 2018 1 commit
  22. 26 Jan, 2018 1 commit
  23. 18 Jan, 2018 1 commit
  24. 19 Dec, 2017 1 commit
  25. 15 Dec, 2017 1 commit
  26. 20 Nov, 2017 1 commit
  27. 05 Nov, 2017 1 commit
  28. 24 Oct, 2017 1 commit
  29. 06 Oct, 2017 1 commit
  30. 01 Oct, 2017 1 commit
  31. 29 Sep, 2017 1 commit
  32. 25 Sep, 2017 1 commit