Commit Graph
3758 Commits
Author SHA1 Message Date
Mathieu Lacage 0fffa8902f avoid using Ptr<EventImpl> 2008-10-15 13:35:49 +02:00
Mathieu Lacage ac3fe49626 don't use EventId in Schedulers: use Scheduler::Event instead. 2008-10-15 13:05:33 +02:00
Mathieu Lacage fa6f146a97 define Scheduler::Event and use it in Scheduler::Insert 2008-10-15 10:33:43 +02:00
Mathieu Lacage 7cedb901fc reuse operator < (EventKey) 2008-10-15 10:11:32 +02:00
Mathieu Lacage 4d763f0ef2 remove uneeded include. 2008-10-15 10:10:53 +02:00
Mathieu Lacage 8aa6139502 merge with HEAD 2008-10-15 09:50:28 +02:00
Mathieu Lacage 7754c097c6 constify 2008-10-15 09:49:39 +02:00
Craig Dowell b84fb74840 implement a non-realtime version of RunOneEvent for realtime simulator and allow Run, Stop, Run 2008-10-14 23:13:12 -07:00
Craig Dowell f90fd0884d slight reorganization and naming change for added realtime methods 2008-10-14 22:52:41 -07:00
Gustavo J. A. M. Carneiro 7b1304c757 Rescan API for Python. 2008-10-12 18:04:10 +01:00
Gustavo J. A. M. Carneiro 425947922a Upgrade to pybindgen rev. 598, to fix bug #291. 2008-10-12 14:40:26 +01:00
Craig Dowell b17bf6c0ec added test for m_running in ScheduleRealNow 2008-10-10 21:01:50 -07:00
Craig Dowell bec8013cbd it helps to remember to add function implementations 2008-10-10 16:43:43 -07:00
Craig Dowell 516726982b add dangerous realtime scheduling methods in an intentionally harder to find and use way 2008-10-10 16:22:13 -07:00
Craig Dowell 782c009cd7 branch merge 2008-10-10 15:26:32 -07:00
Craig Dowell 6710a1eae3 make simulator schedule calls explicitly relative throughout. fixes multithread problem in realtime simulator 2008-10-10 15:24:56 -07:00
Tom Henderson 7cb7dae169 remove tgif figures; replace with dia 2008-10-10 15:01:20 -07:00
Tom Henderson eea9896e69 branch merge 2008-10-10 14:22:53 -07:00
Tom Henderson 1d12f12363 remove tgif figures; replace with dia 2008-10-10 14:21:58 -07:00
Mathieu Lacage 830240a8be bug 331: constify Packet::PeekHeader 2008-10-10 11:20:53 +02:00
Mathieu Lacage 232cbaa542 bug 367: generate beacons by default at time 0.0 2008-10-10 11:18:46 +02:00
Mathieu Lacage 2cc3abeab9 bug 361: make GetBssid public. 2008-10-10 09:24:35 +02:00
Gustavo J. A. M. Carneiro 8a26e3d1d8 merge 2008-10-07 12:39:27 +01:00
Gustavo J. A. M. Carneiro acd8745e77 Fix compat. with Python < 2.5 (fixes ns-old regression failure) 2008-10-07 12:23:57 +01:00
Tom Henderson 99bc502fa0 typo fix (bug 373) 2008-10-06 22:39:53 -07:00
Gustavo J. A. M. Carneiro a48c519a74 Improve debug logging in Node::ReceiveFromDevice 2008-10-06 18:21:04 +01:00
Gustavo J. A. M. Carneiro 92cd268755 New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators. 2008-10-06 17:39:35 +01:00
Tom Henderson b4ca2caa31 bug in script-- Stop not being called 2008-10-02 16:48:01 -07:00
Craig Dowell 863e6607dd bug 337 2008-10-02 15:22:17 -07:00
Gustavo J. A. M. Carneiro 52a690f14a Pull pybindgen revno 582 for increased stability of the generated python files with multiple developers doing the scanning. 2008-10-02 17:30:38 +01:00
Gustavo J. A. M. Carneiro 267e969be1 merge 2008-10-02 17:16:04 +01:00
Gustavo J. A. M. Carneiro 9c6e2d78ad Exit WAF after processing --python-scan to avoid incorrect builds, since WAF does not handle well files being generated into the source dir instead of the build dir 2008-10-02 17:15:09 +01:00
Mathieu Lacage 82ee03accf add private operator = to disable it 2008-10-02 17:05:16 +02:00
Mathieu Lacage fe5e01cb7a hide window when starting simulation. 2008-10-02 15:04:28 +02:00
Mathieu Lacage e33a19960b change button label to be more explicit 2008-10-02 14:57:39 +02:00
Gustavo J. A. M. Carneiro eab3243523 Need to acquire the Python GIL also in ~PythonEventImpl, as it may be called at any time from the C++ code, from any thread. 2008-09-27 15:32:04 +01:00
Gustavo J. A. M. Carneiro 607487607a Get newer pybindgen, for stl containers support 2008-09-27 15:26:27 +01:00
Gustavo J. A. M. Carneiro bd8d9daee5 merge 2008-09-27 15:17:37 +01:00
Gustavo J. A. M. Carneiro 41ffc40f0b Allow interrupting PyBindGen fetching, via Ctrl-C, for the impatient developers. 2008-09-27 15:06:38 +01:00
Mathieu Lacage 16e57392d8 fix build with gcc 4.3.0 2008-09-25 15:50:07 -07:00
Florian Westphal 0f8fdc70ba 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
Mathieu Lacage 816e17dac6 make sure sinks are started 2008-09-23 16:38:51 -07:00
Mathieu Lacage da951a02b6 make sure that the sinks are started 2008-09-23 16:31:54 -07:00
Mathieu Lacage 98c2270d62 use better variable names. 2008-09-23 16:14:00 -07:00
Mathieu Lacage f1fcae8e14 the sink must be enabled on node 2 2008-09-23 16:02:30 -07:00
Craig Dowell 984d92e27f mispeeling in introduction.texi 2008-09-23 09:53:52 -07:00
Florian Westphal 8ef65c2071 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 420d6ea3c2 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 6cb14190cb Added tag ns-3.2 for changeset 2ecac911b3ec 2008-09-22 10:36:24 -07:00
Tom Henderson 27c0cc53aa Add chapter on realtime scheduler to manual 2008-09-21 13:10:08 -07:00