![]() |
Kea 3.0.0
|
DHCPv6 packet queue buffer implementation. More...
#include <packet_queue_ring.h>
Public Member Functions | |
| PacketQueueRing6 (const std::string &queue_type, size_t capacity) | |
| Constructor. | |
| virtual | ~PacketQueueRing6 () |
| virtual Destructor | |
| Public Member Functions inherited from isc::dhcp::PacketQueueRing< Pkt6Ptr > | |
| PacketQueueRing (const std::string &queue_type, size_t capacity) | |
| Constructor. | |
| virtual | ~PacketQueueRing () |
| virtual Destructor | |
| virtual void | clear () |
| Discards all packets currently in the buffer. | |
| virtual Pkt6Ptr | dequeuePacket () |
| Dequeues the next packet from the queue. | |
| virtual int | eatPackets (const QueueEnd &) |
| Discards packets from one end of the queue. | |
| virtual bool | empty () const |
| Returns True if the queue is empty. | |
| virtual void | enqueuePacket (Pkt6Ptr packet, const SocketInfo &source) |
| Adds a packet to the queue. | |
| virtual size_t | getCapacity () const |
| Returns the maximum number of packets allowed in the buffer. | |
| virtual data::ElementPtr | getInfo () const |
| Fetches pertinent information. | |
| virtual size_t | getSize () const |
| Returns the current number of packets in the buffer. | |
| virtual const Pkt6Ptr | peek (const QueueEnd &from=QueueEnd::FRONT) const |
| Gets the packet currently at one end of the queue. | |
| virtual Pkt6Ptr | popPacket (const QueueEnd &from=QueueEnd::FRONT) |
| Pops a packet from the queue. | |
| virtual void | pushPacket (Pkt6Ptr &packet, const QueueEnd &to=QueueEnd::BACK) |
| Pushes a packet onto the queue. | |
| virtual void | setCapacity (size_t capacity) |
| Sets the maximum number of packets allowed in the buffer. | |
| virtual bool | shouldDropPacket (Pkt6Ptr, const SocketInfo &) |
| Determines if a packet should be discarded. | |
| Public Member Functions inherited from isc::dhcp::PacketQueue< Pkt6Ptr > | |
| PacketQueue (const std::string &queue_type) | |
| Constructor. | |
| virtual | ~PacketQueue () |
| Virtual destructor. | |
| std::string | getInfoStr () const |
| Fetches a JSON string representation of queue operational info. | |
| std::string | getQueueType () |
Additional Inherited Members | |
| Static Public Attributes inherited from isc::dhcp::PacketQueueRing< Pkt6Ptr > | |
| static const size_t | MIN_RING_CAPACITY |
| Minimum queue capacity permitted. | |
DHCPv6 packet queue buffer implementation.
This implementation does not (currently) add any drop or packet skip logic, it operates as a verbatim ring queue for DHCPv6 packets.
Definition at line 246 of file packet_queue_ring.h.
|
inline |
Constructor.
| queue_type | logical name of the queue implementation |
| capacity | maximum number of packets the queue can hold |
Definition at line 252 of file packet_queue_ring.h.
References isc::dhcp::PacketQueueRing< Pkt6Ptr >::PacketQueueRing().
|
inlinevirtual |
virtual Destructor
Definition at line 257 of file packet_queue_ring.h.