1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

Make the TraceGroup::consolidateHops method const.

This commit is contained in:
david
2009-08-21 01:06:49 +00:00
parent a4ea6d2f7c
commit b64134be14
2 changed files with 2 additions and 2 deletions

View File

@@ -1176,7 +1176,7 @@ TraceGroup::retransmissions(vector < TraceProbe * >&retrans) {
/* Returns a map from TTLs to probes, stripped of all unneeded probes and with /* Returns a map from TTLs to probes, stripped of all unneeded probes and with
* timed-out probes marked for consolidation. */ * timed-out probes marked for consolidation. */
map < u8, TraceProbe * > TraceGroup::consolidateHops() { map < u8, TraceProbe * > TraceGroup::consolidateHops() const {
map < u16, TraceProbe * >::size_type ttl_count; map < u16, TraceProbe * >::size_type ttl_count;
map < u8, TraceProbe * >ttlProbes; map < u8, TraceProbe * >ttlProbes;
map < u16, TraceProbe * >::const_iterator probe_iter; map < u16, TraceProbe * >::const_iterator probe_iter;

View File

@@ -210,7 +210,7 @@ class TraceGroup {
void retransmissions(std::vector < TraceProbe * >&retrans); void retransmissions(std::vector < TraceProbe * >&retrans);
/* Returns a map from TTLs to probes, stripped of all unneeded probes and /* Returns a map from TTLs to probes, stripped of all unneeded probes and
* with timed-out probes marked for consolidation. */ * with timed-out probes marked for consolidation. */
std::map < u8, TraceProbe * > consolidateHops(); std::map < u8, TraceProbe * > consolidateHops() const;
/* the next ttl to send, if the destination has replied the ttl is /* the next ttl to send, if the destination has replied the ttl is
* decremented, if it hasn't it is incremented */ * decremented, if it hasn't it is incremented */
void nextTTL(); void nextTTL();