/usr/include/dublintraceroute/traceroute_results.h is in libdublintraceroute-dev 0.3-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | /**
* \file traceroute_results.h
* \author Andrea Barberio <insomniac@slackware.it>
* \copyright 2-clause BSD
* \date October 2015
* \brief Traceroute results class for dublin-traceroute
*
* This file contains the Traceroute results class for dublin-traceroute.
*
* This class is a container for a per-flow hops representation, and offers
* facilities to print the traceroute output and convert it to a JSON
* representation.
*
* \sa traceroute_results.cc
*/
#include <vector>
#include "common.h"
#include "hop.h"
class TracerouteResults {
private:
std::shared_ptr<flow_map_t> flows_;
bool compressed_;
public:
TracerouteResults(std::shared_ptr<flow_map_t> flows);
~TracerouteResults() { };
inline flow_map_t &flows() { return *flows_; }
std::shared_ptr<IP> match_packet(const Packet &packet);
void show(std::ostream &stream=std::cout);
void compress();
std::string to_json();
};
|