]> git.ipfire.org Git - thirdparty/kea.git/commit
[#3297] Initial Packet processing implemented
authorThomas Markwalder <tmark@isc.org>
Thu, 28 Mar 2024 20:25:22 +0000 (16:25 -0400)
committerRazvan Becheriu <razvan@isc.org>
Wed, 3 Apr 2024 12:14:35 +0000 (15:14 +0300)
commitabc2570ce37cf2ed3c433bb20d022916c585fdd3
treeabb9c242878cc469d76a8d05157f1eeb63b7c7d1
parent0df263ea9f106e317daa6d3b4cba6a0f3045d725
[#3297] Initial Packet processing implemented

PerfMonMgr can now process packet event stacks,
poplating duration store and driving alarm checking
Not yet tied to pkt_send handlers

src/hooks/dhcp/perfmon/monitored_duration.*
    DurationKey::getStatName()
                 setSubnetId() - new functions

src/hooks/dhcp/perfmon/perfmon_messages.mes
    PERFMON_ALARM_CLEARED
    PERFMON_ALARM_TRIGGERED - new messages

src/hooks/dhcp/perfmon/perfmon_mgr.*
    PerfMonMgr::init() - new function

    PerfMonMgr::processPktEventStack()
    PerfMonMgr::reportToStatsMgr()
    PerfMonMgr::reportAlarm() - implemented

src/hooks/dhcp/perfmon/tests/monitored_duration_unittests.cc
    Updated to test getStatName()

src/hooks/dhcp/perfmon/tests/perfmon_mgr_unittests.cc
    class TestablePerfMonMgr : public PerfMonMgr - new
    Expanded PerfMonMgrTest with new tests functions

    TEST_F(PerfMonMgrTest4, testReportToStatsMgr)
    TEST_F(PerfMonMgrTest6, testReportToStatsMgr)
    TEST_F(PerfMonMgrTest4, testAddDurationSample)
    TEST_F(PerfMonMgrTest6, testAddDurationSample)
    - new tests
src/hooks/dhcp/perfmon/monitored_duration.cc
src/hooks/dhcp/perfmon/monitored_duration.h
src/hooks/dhcp/perfmon/perfmon_messages.cc
src/hooks/dhcp/perfmon/perfmon_messages.h
src/hooks/dhcp/perfmon/perfmon_messages.mes
src/hooks/dhcp/perfmon/perfmon_mgr.cc
src/hooks/dhcp/perfmon/perfmon_mgr.h
src/hooks/dhcp/perfmon/tests/Makefile.am
src/hooks/dhcp/perfmon/tests/monitored_duration_unittests.cc
src/hooks/dhcp/perfmon/tests/perfmon_mgr_unittests.cc