diff --git a/traceroute.cc b/traceroute.cc index 273bbd814..1c6b4d6fd 100644 --- a/traceroute.cc +++ b/traceroute.cc @@ -280,6 +280,7 @@ public: struct timeval sent_time; Probe(HostState *host, struct probespec pspec, u8 ttl); + virtual ~Probe(); void send(int rawsd, eth_t *ethsd, struct timeval *now = NULL); void resend(int rawsd, eth_t *ethsd, struct timeval *now = NULL); bool is_timedout(struct timeval *now = NULL) const; @@ -577,6 +578,9 @@ Probe::Probe(HostState *host, struct probespec pspec, u8 ttl) { num_resends = 0; } +Probe::~Probe() { +} + void Probe::send(int rawsd, eth_t *ethsd, struct timeval *now) { struct eth_nfo eth; struct eth_nfo *ethp;