1. 10 Jan, 2019 1 commit
  2. 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
  3. 27 Nov, 2018 3 commits
  4. 20 Nov, 2018 4 commits
    • Francis Dupont's avatar
      [master] Regen flex/bison · 196a77b3
      Francis Dupont authored
      196a77b3
    • Thomas Markwalder's avatar
      [#260,!120] Packet queueing is now optional · 33c86243
      Thomas Markwalder authored
      src/bin/dhcp<4/6>/ctrl_dhcp<4/6>_srv.cc
          ControlledDhcpv<4/6>Srv::processConfig() - now calls
              IfaceMgr::configureDHCPPacketQueue
      
      src/bin/dhcp<4/6>/dhcp<4/6>_parser.yy
          dhpc-queue-control parsing updated to enforce
          enable-queue/queue-type rules
      
      src/bin/dhcp<4/6>/tests/config_parser_unittest.cc
          TEST_F(Dhcp<4/6>ParserTest, dhcpQueueControl)
          TEST_F(Dhcp<4/6>ParserTest, dhcpQueueControlInvalid)
      
      src/lib/dhcp/iface_mgr.*
          IfaceMgr
          - closeSockets()  - now calls stopDHCPReceiver
      
          - openSockets<4/6>() -  now calls startDHCPReceiver
      
          - receive<4/6>Indirect() - new function which monitors receiver
          thread watch sockets, reads DHCP packets from queue
      
          - receive<4/6>Direct() - new function which monitors and reads DHCP
          packets from interface sockets directly
      
          - receive<4/6>() - rewritten to call receive<4/6>Indirect
          if receiver thread is running, otherwise it calls receive<4/6>Direct
      
          - configureDHCPPacketQueue() - new function which either enables queuing
          by creating a new packet queue, or disables it by destroying the
          existing queue
      
      src/lib/dhcp/packet_queue_mgr.h
          PacketQueue::destroyPacketQueue() - new function
      
      src/lib/dhcp/packet_queue_mgr<4/6>.cc
          PacketQueueMgr<4/6>::PacketQueueMgr<4/6>() - no longer creates a
          default packet queue
      
      src/lib/dhcpsrv/cfg_iface.cc
          CfgIface::closeSockets() - removed call to stopDHCPReceiver
          CfgIface::openSockets() - removed call to startDHCPReceiver
      
      src/lib/dhcpsrv/parsers/dhcp_queue_control_parser.*
          DHCPQueueControlParser
          - removed unused family_ member
          - parse() - added support for enable-queue
      
      src/lib/dhcpsrv/tests/dhcp_queue_control_parser_unittest.cc
          - new file
      33c86243
    • Francis Dupont's avatar
      [#268,!125] Regen flex/bison · 478b5230
      Francis Dupont authored
      478b5230
    • Francis Dupont's avatar
      [#182, !128] Regen flex/bison · cafeba16
      Francis Dupont authored
      cafeba16
  5. 17 Nov, 2018 1 commit
  6. 15 Nov, 2018 2 commits
  7. 07 Nov, 2018 2 commits
  8. 05 Oct, 2018 1 commit
    • Thomas Markwalder's avatar
      [#32,!23] dhcp4 now parses "config-control" element · 8c5e6ce8
      Thomas Markwalder authored
      src/bin/dhcp4/dhcp4_lexer.ll
      src/bin/dhcp4/dhcp4_parser.yy
          Added parsing support for config-control and config-databases
      
      src/bin/dhcp4/json_config_parser.cc
          configureDhcp4Server() - added handler for config-control element
      
      src/bin/dhcp4/parser_context.*
          added CONFIG_CONTROL and CONFIG_DATABASE
      
      src/bin/dhcp4/tests/config_parser_unittest.cc
         TEST_F(Dhcp4ParserTest, configControlInfo) - new test
      8c5e6ce8
  9. 19 Sep, 2018 2 commits
  10. 14 Sep, 2018 1 commit
  11. 12 Sep, 2018 1 commit
  12. 16 Aug, 2018 1 commit
  13. 26 Apr, 2018 1 commit
    • Thomas Markwalder's avatar
      [5535] kea-dhcp4 parsing now supports relay "ip-addresses" · c71f3d38
      Thomas Markwalder authored
      src/bin/dhcp4/dhcp4_lexer.ll
      src/bin/dhcp4/dhcp4_parser.yy
          Modified to support "ip-address" and
          "ip-addresses" under "relay"
      
      src/bin/dhcp4/tests/get_config_unittest.cc
          Updated per process.
      
      src/bin/dhcp4/tests/config_parser_unittest.cc
          void checkResult() - modified to output parsing error text
      
          TEST_F(Dhcp4ParserTest, subnetRelayInfo)
          TEST_F(Dhcp4ParserTest, classifySubnets)
          - updated to use new Network methods
      
          TEST_F(Dhcp4ParserTest, subnetRelayInfoList) - new test
          to verify a list of addresses in relay
      c71f3d38
  14. 11 Apr, 2018 1 commit
  15. 06 Apr, 2018 1 commit
  16. 05 Apr, 2018 2 commits
  17. 01 Apr, 2018 1 commit
  18. 27 Mar, 2018 1 commit
  19. 22 Mar, 2018 1 commit
  20. 12 Mar, 2018 1 commit
  21. 28 Feb, 2018 1 commit
    • Thomas Markwalder's avatar
      [5477] dhcpsrv/postgres and kea-dhcp4 now support db reconnect · 249219f1
      Thomas Markwalder authored
      kea-dhcp4
          added support for max-reconnect-tries and reconnect-wait-time
          to lease and host db parsers
      
          Added a callback for when DB backends detect loss of connectivity
      
          Added a self-rescheduling method to attempt to reconnect to the
          backends if retries are enabled
      
      dhcpsrv
          Added a callback that DatabaseConnection derivations should invoke
          when they lose connectivity.
      
          Added an optional callback parameter from CfgDbAccess::createManagers()
          all the way down to DatabaseConnection ctor.
      
          pgsql_connection.cc
              PgSqlConnection::~PgSqlConnection() - Added logic to close the
              connection only when the connect state is still OK.
              Otherwise it likes to core dump.
      
              PgSqlConnection::checkStatementError() - Modified to invoke the
              connectivity lost callback on "fatal" errors
      
          pgsql_lease_mgr_unittest.cc
          pgsql_host_data_source_unittest.cc
              Added tests to verify that the lost callback is NOT invoked on an
              open failure
      249219f1
  22. 12 Feb, 2018 1 commit
  23. 18 Jan, 2018 1 commit
  24. 31 Dec, 2017 1 commit
  25. 18 Dec, 2017 1 commit
  26. 17 Dec, 2017 3 commits
  27. 03 Dec, 2017 1 commit
  28. 02 Dec, 2017 1 commit
  29. 01 Dec, 2017 1 commit