Commit Graph

2950 Commits

Author SHA1 Message Date
Mathieu Lacage
2aecf7055b bug 278: print protocol number from Ipv4Header::Print 2008-10-20 13:31:25 +02:00
Mathieu Lacage
0f8139fc10 bug 382: templated DynamicCast 2008-10-20 08:40:32 +02:00
Mathieu Lacage
e443a39436 merge with HEAD 2008-10-17 20:07:44 +02:00
Mathieu Lacage
b4745c7708 add debugging 2008-10-17 20:05:17 +02:00
Mathieu Lacage
79250d10c2 add API to get bytes out of a packet without calling PeekData 2008-10-17 14:16:53 +02:00
Mathieu Lacage
36c0976a53 give attribute power to Callback. 2008-10-17 14:15:52 +02:00
Mathieu Lacage
6f484b6ead bug 349: workaround compiler bug 2008-10-17 13:11:39 +02:00
Mathieu Lacage
b44dc748e0 fix optimized build 2008-10-17 10:35:14 +02:00
Gustavo J. A. M. Carneiro
2e79a78db0 merge 2008-10-16 11:54:24 +01:00
Mathieu Lacage
98b197de5a bug 202: header file conflict 2008-10-16 12:53:05 +02:00
Mathieu Lacage
ff776177bf bug 352: STA receives back the broadcasts it sends. 2008-10-16 12:47:17 +02:00
Gustavo J. A. M. Carneiro
6cae60a58d merge 2008-10-16 11:42:23 +01:00
Mathieu Lacage
7b55da3a04 kill dead code 2008-10-16 12:22:59 +02:00
Mathieu Lacage
eb566b82d3 bug 350: operator > missing. 2008-10-16 12:17:00 +02:00
Mathieu Lacage
91d94d6076 bug 371: wifi-ap broken 2008-10-16 10:26:13 +02:00
Mathieu Lacage
47f1f1fefc improve debugging 2008-10-16 10:25:55 +02:00
Mathieu Lacage
d3e9be922d bug 372: fragmentation is broken 2008-10-16 09:48:47 +02:00
Gustavo J. A. M. Carneiro
ff4ec5cf64 Packet::Metadata::PrintStats doesn't really exist. 2008-10-15 18:19:12 +01:00
Mathieu Lacage
414c2ff3ad constify 2008-10-15 09:49:39 +02:00
Mathieu Lacage
aea71064a4 bug 331: constify Packet::PeekHeader 2008-10-10 11:20:53 +02:00
Mathieu Lacage
32ce5ce0be bug 367: generate beacons by default at time 0.0 2008-10-10 11:18:46 +02:00
Mathieu Lacage
e20b335199 bug 361: make GetBssid public. 2008-10-10 09:24:35 +02:00
Gustavo J. A. M. Carneiro
24a1fdfc69 Improve debug logging in Node::ReceiveFromDevice 2008-10-06 18:21:04 +01:00
Craig Dowell
4215553314 bug 337 2008-10-02 15:22:17 -07:00
Mathieu Lacage
2160b31237 add private operator = to disable it 2008-10-02 17:05:16 +02:00
Mathieu Lacage
35c25f995e hide window when starting simulation. 2008-10-02 15:04:28 +02:00
Mathieu Lacage
5cd9a601e1 change button label to be more explicit 2008-10-02 14:57: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
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