-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
23 lines (18 loc) · 868 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Instructions for compiling/running MANET sim with ns3-gnutella:
1. In the "manet" directory (i.e. this directory), get a clone of ns3-gnutella:
git clone https://github.com/ainscore/ns3-gnutella
2. Copy the source files into this directory:
cp ns3-gnutella/*.cc ns3-gnutella/*.h .
3. Fix the following bug in Descriptor.h (this crops up on my ns3 installation,
which is configured to run g++ with -Werror):
a. edit Descriptor.h
b. find the "PongDescriptor" class, and make the destructor virtual
(should be line 163 of Descriptor.h):
i.e. change:
~PongDescriptor();
to be:
virtual ~PongDescriptor();
4. Delete ns3-gnutella's main script (we won't be using it):
rm gnutella.cc
5. Run the manet sim:
./waf --run "manet --application=gnutella"