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:
@@ -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;
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user