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
1994268a9b
merge with tip
2008-09-12 16:13:20 -07:00
Tom Henderson
5d9c714c1e
Doxygen for internet-stack
2008-09-12 16:12:58 -07:00
Tom Henderson
6f3dc648ed
doxygen for src/contrib
2008-09-12 11:34:25 -07:00
Craig Dowell
a7f445f460
fix bug 338, MTU overflows frameSize
2008-09-11 15:32:39 -07:00
Mathieu Lacage
f5bb4c3302
bug 333:The Position attribute is not constructable anymore.
2008-09-11 11:08:22 -07:00
Mathieu Lacage
75cba72257
Do not assert. Use NS_FATAL_ERROR.
2008-09-11 09:54:19 -07:00
Gustavo J. A. M. Carneiro
7c2c80af1b
Check the return value of read(); Fixes #336 .
2008-09-11 15:21:19 +01: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
cd64cbad48
initialize sta listen interval
2008-09-08 14:45:11 -07:00
Mathieu Lacage
69aa96cfe8
initialize m_ctrlPwrMgt
2008-09-08 14:40:48 -07:00
Mathieu Lacage
18f4a0f940
don't use bitfields: they are evil.
2008-09-08 14:40:27 -07:00
Mathieu Lacage
9b48ec2c9c
should set retry bit in rts and acks.
2008-09-08 14:39:59 -07:00
Mathieu Lacage
d654a7c67a
should set retry bit in acks.
2008-09-08 14:37:54 -07:00
Mathieu Lacage
6f2fba35ab
make mobility helper ascii output more robust to formatting portability problems.
2008-09-08 13:13:09 -07:00
Mathieu Lacage
f75a46a16c
do not reserve space for unwritten data to avoid memory initialization problems
2008-09-08 12:22:29 -07:00
Mathieu Lacage
320dcbbfee
bug 316: make nsc compilation conditional again
2008-09-08 09:22:45 -07:00
Gustavo J. A. M. Carneiro
8bb361bcba
Missing include
2008-09-08 12:54:47 +01:00
Gustavo J. A. M. Carneiro
986a63bbb4
merge
2008-09-08 12:35:08 +01:00
Gustavo J. A. M. Carneiro
e1f187d38a
Detect the pthread.h header file and automatically disable components that cannot build without it.
2008-09-08 12:19:46 +01:00
Unknown
ae217b0eaa
Don't build realtime simulator if required core components aren't built
2008-09-07 20:13:51 -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
Unknown
d8dc981267
just remove hires clocks from wall-clock-synchronizer until they are needed
2008-09-06 21:15:59 -07:00
Unknown
e84289cff4
fix MinGW build
2008-09-06 21:04:39 -07:00
Unknown
fd149a38f3
no references to timespec if CLOCK_REALTIME undef
2008-09-06 10:41:13 -07: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
9e629d895f
make sure aid is initialized
2008-09-05 21:36:20 -07: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
Unknown
d8ec3bb638
flip LLC to DIX framing switch in csma
2008-09-05 15:57:46 -07:00
Unknown
f4ea04de0b
apply MTU/FrameSize treatment to point-to-point
2008-09-05 15:18:20 -07:00
Unknown
a618b8efaa
branch merge
2008-09-05 11:57:56 -07:00
Unknown
55279b18b4
MTU, encap mode cleanup for csma
2008-09-05 11:56:17 -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
Unknown
d2dd9c358f
further cleanup of MTU in CSMA
2008-09-04 22:38:52 -07:00
Mathieu Lacage
bf1e64236f
add NetDeviceContainer constructors
2008-09-04 10:04:14 -07:00
Mathieu Lacage
9d1d6b890e
bug 309: GtkConfigStore does not build on freebsd.
2008-09-04 08:59:50 -07:00
Mathieu Lacage
aafd298bde
merge with HEAD
2008-09-03 14:28:26 -07: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
51d62156f5
merge with HEAD
2008-09-03 10:42:18 -07:00
Mathieu Lacage
d24895bdd1
forward a frame back to the wireless network only if the destination is associated, is a broadcast or multicast packet.
2008-09-03 10:37:22 -07:00