/usr/include/dublintraceroute/common.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 37 38 39 40 41 42 43 44 45 | /**
* \file common.h
* \author Andrea Barberio <insomniac@slackware.it>
* \copyright 2-clause BSD
* \date October 2015
* \brief Common utilities for dublin-traceroute
*
* This file contains the common utilities for dublin-traceroute.
*
* This module currently offers the set-up of the logging facilities and IP ID
* matching algorithm switch.
*
* \sa common.cc
*/
#ifndef _COMMON_H
#define _COMMON_H
#include <map>
#include <tins/tins.h>
#include <json/json.h>
#include "hop.h"
/* Define/undefine USE_IP_ID_MATCHING to enable the IP ID packet matching, that
* enables multipath traceroutes to work through NAT
*/
#define USE_IP_ID_MATCHING
using namespace Tins;
#define PROGNAME "dublin-traceroute"
#define LOG_DIR "logs"
typedef uint16_t flow_id_t;
typedef std::vector<Hop> hops_internal_t;
typedef std::shared_ptr<hops_internal_t> hops_t;
typedef std::map<flow_id_t, hops_t> flow_map_t;
void setupLogging();
void shutDownLogging();
#endif /* _COMMON_H */
|