A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
v4traceroute-helper.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Ritsumeikan University, Shiga, Japan
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 *
7 * Alberto Gallegos Ramonet <ramonet@fc.ritsumei.ac.jp>
8 *
9 */
10
11#ifndef V4TRACEROUTE_HELPER_H
12#define V4TRACEROUTE_HELPER_H
13
14#include <ns3/application-helper.h>
15
16namespace ns3
17{
18
19class OutputStreamWrapper;
20
21/**
22 * \ingroup v4traceroute
23 * \brief Create a IPv4 traceroute application and associate it to a node
24 *
25 * This class creates one or multiple instances of ns3::V4TraceRoute and associates
26 * it/them to one/multiple node(s).
27 */
29{
30 public:
31 /**
32 * Create a V4TraceRouteHelper which is used to make life easier for people wanting
33 * to use TraceRoute
34 *
35 * \param remote The address which should be traced
36 */
37 V4TraceRouteHelper(const Ipv4Address& remote);
38
39 /**
40 * \brief Print the resulting trace routes from given node.
41 * \param node The origin node where the traceroute is initiated.
42 * \param stream The outputstream used to print the resulting traced routes.
43 */
45};
46
47} // namespace ns3
48
49#endif /* V4TRACEROUTE_HELPER_H */
A helper to make it easier to instantiate an application on a set of nodes.
Ipv4 addresses are stored in host order in this class.
Smart pointer class similar to boost::intrusive_ptr.
Create a IPv4 traceroute application and associate it to a node.
static void PrintTraceRouteAt(Ptr< Node > node, Ptr< OutputStreamWrapper > stream)
Print the resulting trace routes from given node.
V4TraceRouteHelper(const Ipv4Address &remote)
Create a V4TraceRouteHelper which is used to make life easier for people wanting to use TraceRoute.
Every class exported by the ns3 library is enclosed in the ns3 namespace.