]> git.ipfire.org Git - thirdparty/kea.git/commit
[packet-queue-queue-by-list] PacketQueue now queues lists of packets packet-queue-queue-by-list
authorThomas Markwalder <tmark@isc.org>
Sat, 1 Dec 2018 18:59:05 +0000 (13:59 -0500)
committerThomas Markwalder <tmark@isc.org>
Sat, 1 Dec 2018 18:59:05 +0000 (13:59 -0500)
commit1ecda82030673a2bb6f0fa8ab17fbc0aaeee75f9
treebd1c71435d2c45a843cfe4c58be92fdcf99e64e8
parent926ffc1cc36915450a74d45c6f24d9db931dfe24
[packet-queue-queue-by-list] PacketQueue now queues lists of packets

src/lib/dhcp/Makefile.am
    Added packt_queue_ring.h

src/lib/dhcp/iface_mgr.*
    IfaceMgr::receiveDHCP4Packets()
    IfaceMgr::receiveDHCP6Packets() - modified to queue a list of packets

    IfaceMgr::receiveDHCP6Packet() - modified to return packet rather than
    queue it

src/lib/dhcp/packet_queue.h
    PacketQueue<>
        - replaced enqueuePacket() with enqueuePackets() and is
        now pure virtual
        - dequeuePacket() is now pure virtual
        - Removed pop, push, peek methods

    Moved All PackeQueueRing<> code into new header

src/lib/dhcp/packet_queue_ring.h
    New header which contains PacketQueueRing<> and derivations
12 files changed:
src/lib/dhcp/Makefile.am
src/lib/dhcp/iface_mgr.cc
src/lib/dhcp/iface_mgr.h
src/lib/dhcp/packet_queue.h
src/lib/dhcp/packet_queue_mgr4.cc
src/lib/dhcp/packet_queue_mgr6.cc
src/lib/dhcp/packet_queue_ring.h [new file with mode: 0644]
src/lib/dhcp/tests/iface_mgr_unittest.cc
src/lib/dhcp/tests/packet_queue4_unittest.cc
src/lib/dhcp/tests/packet_queue6_unittest.cc
src/lib/dhcp/tests/packet_queue_mgr4_unittest.cc
src/lib/dhcp/tests/packet_queue_mgr6_unittest.cc