Holds state information for a destination being pinged. More...
#include <DwmPingDestinationEntry.hh>

Public Member Functions | |
| PingDestinationEntry () | |
| Constructor. | |
| void | Destination (const PingDestination &destination) |
| Sets the destination. | |
| const PingSequencesInFlight & | Sequences () const |
| Returns a const reference to the contained sequences in flight. | |
| PingSequencesInFlight & | Sequences () |
| Returns a mutable reference to the contained sequences in flight. | |
| uint64_t | PacketsSent () const |
| Returns the number of packets sent to the destination. | |
| uint64_t | PacketsSent (uint64_t packetsSent) |
| Sets and returns the number of packets sent to the destination. | |
| uint64_t | PacketsReceived () const |
| Returns the number of packets received from the destination. | |
| uint64_t | PacketsReceived (uint64_t packetsReceived) |
| Sets and Returns the number of packets received from the destination. | |
| bool | Primed () const |
| Returns true if the destination has been primed. More... | |
| bool | Primed (bool primed) |
| Sets whether or not the destination has been primed. More... | |
Protected Attributes | |
| PingDestination | _destination |
| PingSequencesInFlight | _sequences |
| uint64_t | _packetsSent |
| uint64_t | _packetsReceived |
| bool | _primed |
Holds state information for a destination being pinged.
| bool Dwm::PingDestinationEntry::Primed | ( | ) | const |
Returns true if the destination has been primed.
When using TCP, we 'prime' the destination with a SYN packet. This lets us get through weak stateful firewall rules such as those typically used with ipfw and pf.
| bool Dwm::PingDestinationEntry::Primed | ( | bool | primed | ) |
Sets whether or not the destination has been primed.
When using TCP, we 'prime' the destination with a SYN packet. This lets us get through weak stateful firewall rules such as those typically used with ipfw and pf.