Commit Graph

55 Commits

Author SHA1 Message Date
Mathieu Lacage
414c2ff3ad constify 2008-10-15 09:49:39 +02:00
Mathieu Lacage
e864af7983 fix build with gcc 4.3.0 2008-09-25 15:50:07 -07:00
Florian Westphal
3a6bf88a49 nsc: delay creating nsc interface using ScheduleNow ().
because we cannot rely on the node to have any assigned interface
when the nsc stack is initialised, we need to delay creating the nsc
interface. Up until now this was done by initialising the interface
when the first socket is opened, which resulted in a segfault or
an assertion failure when a packet arrived but no socket was ever created...
2008-09-25 01:43:27 +02:00
Florian Westphal
266bc671a5 nsc: avoid unecessary use of posix headers
this removes usage of struct iphdr and inet_ntoa.
Replaced by uint32_t[] (we only need to fetch source/destination
ip addresses) and Ipv4Header::Print(), respectively.

netinet/in.h and arpa/inet.h are retained for the time being
due to ntohs/ntohl.
2008-09-23 01:09:43 +02:00
Florian Westphal
41fffa73b9 nsc: make sure nsc has a configured interface
the receive method hands packets to the nsc core via
nsc's if_receive_packet() method.

NSC (rightfully) assumes that if it gets a packet, there must
be a network interface. However, at this time the interface
initialization in ns-3-nsc is done when the first socket is created.

The result is a segmentation fault inside nsc when ns-3 receives
a packet on an nsc-enabled node before a socked has been created
on that node.

For the time being, use NS_ASSERT to make sure the nsc interface exits.
This also gets rid of the NS_LOG use inside the Softinterrupt timer
method and replaces
NS_LOG_FUNCTION_NOARGS with NS_LOG_FUNCTION (this), as suggested by
Mathieu Lacage.
2008-09-22 22:18:53 +02:00
Craig Dowell
4105b6e392 Apply Sam's nsc regression patch 2008-09-17 20:04:26 -07:00
Tom Henderson
b005d33fb9 fix some Doxygen warnings 2008-09-15 06:10:53 -07:00
Tom Henderson
5d9c714c1e Doxygen for internet-stack 2008-09-12 16:12:58 -07:00
Florian Westphal
9f901c8ef1 nsc: fix liblinux2.6.18.so sym link creation
changeset 3628:a9c05c7e54f2 ('Move all NSC related build code into
src/internet-stack') erronoulsy moved the sym link creation outside
of the loop.

closes bug #328.
2008-09-10 13:11:35 +02:00
Florian Westphal
9f2e63f535 nsc: remove nsc builddir symlink
changeset 3635:cddd59578812 ('compile nsc code unconditionally')
added the nsc header files to ns-3 and fixed up the include paths,
so we no longer need to create a builddir/nsc symlink to find them.
2008-09-10 12:46:59 +02:00
Craig Dowell
cb9b816af0 enable nsc when nsc enabled 2008-09-09 17:09:37 -07:00
Mathieu Lacage
e5870d73cb bug 322: download nsc from released location if in 'release' mode. 2008-09-09 10:15:40 -07:00
Mathieu Lacage
320dcbbfee bug 316: make nsc compilation conditional again 2008-09-08 09:22:45 -07:00
Raj Bhattacharjea
1b605147ce Implement TCP finite rx buffer (bug 239) 2008-09-07 20:23:24 -04:00
Raj Bhattacharjea
48ac0501a0 Fix TCP closedown FINs, and remove broken tcp-erros example (bug 242) 2008-09-07 19:38:26 -04:00
Gustavo J. A. M. Carneiro
80ba473c52 For better consistency, option --nsc becomes --enable-nsc, --python-disable becomes --disable-python. 2008-09-06 14:46:01 +01:00
Mathieu Lacage
fb24a25673 compile nsc code unconditionally. 2008-09-05 21:12:00 -07:00
Mathieu Lacage
618313f44c add AddIpv4Stack, splt functions in independent chunks 2008-09-05 20:00:40 -07:00
Gustavo J. A. M. Carneiro
b9a4eaca8e Move all NSC related build code into src/internet-stack, to unclutter a bit the main wscript 2008-09-05 19:55:21 +01:00
Gustavo J. A. M. Carneiro
e4bd4773e8 We don't want mercurial -q option when fetching nsc, user feedback is important. 2008-09-05 18:37:00 +01:00
Gustavo J. A. M. Carneiro
453dd8a294 Add a summary of optional features at the end of the configuration stage. 2008-09-05 18:16:29 +01:00
Florian Westphal
720a407b59 nsc: Fix build problem if gtk config store is disabled
gtk config store pulled in libdl.so for us, so things fail
to link of the config store isn't enabled. This makes nsc
pull in libdl itself when its enabled.
2008-09-03 23:24:59 +02:00
Mathieu Lacage
f423b864b0 add missing aggregate removed by previous commit 2008-09-03 09:59:04 -07:00
Mathieu Lacage
21dcddef88 make nsc build again. 2008-09-02 21:19:27 -07:00
Mathieu Lacage
cd39d96f2b bug 282: remove Ipv4L4Demux 2008-09-02 17:20:32 -07:00
Florian Westphal
235ac2801f nsc: enable network simulation cradle
This adds the hooks to allow the nsc code to be compiled into ns-3 if
the --nsc flag is specified during 'waf configure'.
2008-08-29 23:10:00 +02:00
Florian Westphal
4591673b99 nsc: core files.
This adds the core network simulation cradle support
code.
2008-08-29 23:08:18 +02:00
Florian Westphal
11c4bec9e8 ipv4-end-point-demux: add method to fetch list of all endpoints
GetAllEndPoints() will be used by the network simulation cradle.
After a wakeup event, all sockets (Endpoints) have to be checked
for state changes.
2008-08-29 23:07:21 +02:00
Mathieu Lacage
cfdb301bee bug 273: constify packet pointers. 2008-08-25 09:13:05 -07:00
Raj Bhattacharjea
cd95f66344 Fix a unit test typo (thanks Providence Salumu Munga 2008-08-19 14:13:01 -04:00
Raj Bhattacharjea
a55316e4f7 Add another test to TcpSocketImplTest 2008-08-14 18:25:33 -04:00
Raj Bhattacharjea
4ad7f52f7c Add a test to TcpSocketImpl unit tests 2008-08-14 17:39:43 -04:00
Mathieu Lacage
66c9294134 make it build with gcc 4.1.3 2008-08-13 10:08:03 -07:00
Raj Bhattacharjea
f9cb0f5a7e Stub TcpSocketImpl unit test 2008-08-11 16:47:46 -04:00
Tom Henderson
3af1dc7235 revised patch to fix bug 253 2008-07-30 06:30:42 -07:00
Raj Bhattacharjea
caaae1c1dd Fix TcpSocketImpl rx buffer logic (closes 248) 2008-07-29 15:36:41 -04:00
Raj Bhattacharjea
0ad768c938 Make PacketSink multitasking for TCP (closes bug 244) 2008-07-23 16:09:17 -04:00
Gustavo J. A. M. Carneiro
06a4d72721 merge 2008-07-18 11:12:31 +01:00
Tom Henderson
4914c4afcb Add NS_LOG_FUNCTION calls in arp implementation 2008-07-16 22:33:51 -07:00
Gustavo J. A. M. Carneiro
a8d461f29e Remove some useless code 2008-07-16 16:17:21 +01:00
Gustavo J. A. M. Carneiro
d1a7261479 merge 2008-07-14 11:12:30 +01:00
Mathieu Lacage
731a76246f bug 247: tcp checksum crashes when enabled. 2008-07-10 15:58:24 -07:00
Raj Bhattacharjea
be9e5ced39 Add some additional TCP dox about RFC compliance 2008-07-09 14:10:18 -04:00
Gustavo J. A. M. Carneiro
fe73953148 sync with ns-3-dev 2008-07-08 14:18:50 +01:00
Gustavo J. A. M. Carneiro
cb491541ac Simplify promiscuous mode API: NetDevices always operate in promiscuous mode, normal receive callbacks receive extra destination address and packet type. 2008-07-07 12:18:05 +01:00
Unknown
12c6c43d57 Minor doc notes added to ipv4.h 2008-07-03 09:44:23 -04:00
Mathieu Lacage
b93a9aeef4 bug 245: build failure with gcc 4.3.x 2008-07-02 03:16:36 -07:00
Mathieu Lacage
67c5dfa611 implement Packet::PeekHeader and Packet::PeekTrailer to avoid evil workarounds when receiving tcp packets. 2008-07-01 11:00:29 -07:00
Sebastien Vincent
75fab6d1b0 bug 236: add optional support for tcp and udp checksum. 2008-07-01 10:52:11 -07:00
Craig Dowell
8869dc9630 Apply Patch for Bug 237 2008-06-27 14:56:18 -07:00