1. 02 Feb, 2019 1 commit
    • Thomas Markwalder's avatar
      [#399,!215] kea-dhcp4 now merges in config backend shared netwokrs · 6dc4c06c
      Thomas Markwalder authored
      src/lib/dhcpsrv/cfg_shared_networks.*
          CfgSharedNetworks4::merge() - new method to merge
          shared network configs
      
      src/lib/dhcpsrv/cfg_subnets4.*
          CfgSubnets4::merge() - reworked to reflect new rules
      
      src/lib/dhcpsrv/srv_config.cc
          SrvConfig::merge() - now merges shared networks
      
      src/lib/dhcpsrv/tests/cfg_subnets4_unittest.cc
          checkMergedSubnet() - convenience function for
          verifying subnet content
      
          TEST(CfgSubnets4Test, mergeSubnets) - revamped to
          reflect new network assigment rules
      
      src/bin/dhcp4/tests/config_backend_unittest.cc
          TEST_F(Dhcp4CBTest, mergeSharedNetworks)  - enabled test
      6dc4c06c
  2. 03 Feb, 2019 2 commits
  3. 31 Jan, 2019 4 commits
  4. 30 Jan, 2019 8 commits
  5. 29 Jan, 2019 18 commits
  6. 24 Jan, 2019 3 commits
    • Thomas Markwalder's avatar
      [#101,!202] Interrim commit - v4 fetch and merge functional · dc74694d
      Thomas Markwalder authored
      Server fetches config, populates external SrvConfig and invokes
      merge. libdhcpsrv still lacks merging of globals,opt defs,options,
      and shared networks.
      
      src/bin/dhcp4/json_config_parser.*
          configureDhcp4Server() - restored call to databaseConfigFetch()
          databaseConfigFetch(const SrvConfigPtr& srv_cfg) - completed
          implementation, now fetches external config and invokes merge
      
          addGlobalsToConfig()
          handleExplicitGlobal()
          handleImplicitGlobal() - new functions for populating external
          config globals with backend globals
      
      src/bin/dhcp4/tests
          config_backend_unittest.cc - new file that tests config fetch and merge
      
      src/lib/cc/stamped_value.*
          StampedValue::toElement(Element::types elem_type) - new method for
          creating Elements from StampedValues
      
      src/lib/cc/tests/stamped_value_unittest.cc
          TEST(StampedValueTest, toElement) - new test
      
      src/lib/dhcpsrv/testutils/test_config_backend.h
          TestConfigBackend() - fixed host_ assignment
      dc74694d
    • Marcin Siodelski's avatar
      [#405,!212] Fixed a typo. · 145a95ef
      Marcin Siodelski authored
      145a95ef
    • Francis Dupont's avatar
      [405-update-cb_cmds] Missing space · 2f4cc620
      Francis Dupont authored
      2f4cc620
  7. 22 Jan, 2019 1 commit
  8. 18 Jan, 2019 3 commits
    • Tomek Mrugalski's avatar
    • Francis Dupont's avatar
      [283-perfdhcp-indicated-requests-rate-is-not-kept-during-testing] Fixed lib... · e2662b08
      Francis Dupont authored
      [283-perfdhcp-indicated-requests-rate-is-not-kept-during-testing] Fixed lib dhcp comments, removed unused iface control_buf_
      e2662b08
    • Michal Nowikowski's avatar
      [#283,!135] Fixed request rate accuracy issue in perfdhcp introducing 2... · 552e8267
      Michal Nowikowski authored
      [#283,!135] Fixed request rate accuracy issue in perfdhcp introducing 2 threads (for sending and receiving).
      
      Delays in sending and receiving (e.g. timeout is select) was causing time slips so sending new packets was always late.
      The fix splits receiving into separate thread to not interfere with sending in main thread.
      
      RateController was changed. Now it tracks actual request rate estimating it from the beginning of the test.
      In every iteration of sending main loop it is checked if actual request rate is lower than expected.
      In such case packets are sent immediatelly. This way actual request rate is always accurate.
      
      The receiver thread receives packets from socket using select as before but do not have to worry about delaying sending.
      Read packet are parsed and then passed to main sending thread for further processing.
      This processing involves updating stats, matching with sent packets and issueing responses if necessary.
      
      There have been removed some features that do not make sense after introducing these changes.
      These includes: aggresivity and some custom statistics.
      552e8267