Commit Graph

87 Commits

Author SHA1 Message Date
adamdunkels
3fa8ffda1a Moved the modules packetbuf, queuebuf, and packetqueue from net/rime to net/, since they are not Rime-specific 2010-06-14 19:19:16 +00:00
oliverschmidt
5640f89259 In contrast to Cygwin 1.5 Cygwin 1.7 doesn't allow to get __argc out of thin air anymore. Instead of finding a workaround I opted to remove the whole command line checking here which was added so revisions ago. The reasoning:
The WinPcap driver presumes to be obligatory for the application. Therefore it quits the whole application if it can't initialize successfully.

In former times the WinPcap driver required a cmdline parameter to initialize properly. The netsim target presumably doesn't consider the WinPcap driver obligatory for its applications so it checks the cmdline and starts the WinPcap driver only if it finds the WinPcap cmdline parameter present. Thus it prevents the WinPcap driver from failing to initialize which brings down the whole application.

However recently the WinPcap driver was changed to just use some default value if its cmdline parameter isn't found. So there's no more need to keep WinPcap from starting just to make sure it doesn't bring down the whole application. The presumption behind all this reasoning is that a WinPcap driver running with some (potentially wrong) default isn't worse than a WinPcap driver not running at all.
2010-04-21 20:27:28 +00:00
adamdunkels
69a5b67523 Updated netsim to new netstack API 2010-02-23 18:44:08 +00:00
adamdunkels
08f06d8039 Updated to new sensors API 2010-02-23 18:43:43 +00:00
adamdunkels
fa4d4db329 Use the common netstack_init 2010-02-18 23:19:03 +00:00
adamdunkels
927aa821c3 Updated to new MAC api 2010-02-18 23:10:06 +00:00
adamdunkels
590b4786c5 Added queuebuf statistics option, since it is used by the examples/rime/example-rudolph1.c code (on the netsim target) 2010-02-08 21:39:15 +00:00
nifi
a7f8761978 Updated to match the new sensors API 2010-01-15 10:34:36 +00:00
adamdunkels
2f19892f74 Updated with the new sensors API 2010-01-15 08:50:39 +00:00
adamdunkels
fe126bc90e Updated to match the new sensors API 2010-01-14 15:38:56 +00:00
adamdunkels
0076bfe8a5 Changed the name of the 'serial' module to 'serial-line' to signify that the module is about lines of data from the serial port, not individual bytes, and to make sdcc happy 2009-03-17 15:56:32 +00:00
adamdunkels
65eb5fd4e8 Renamed the rimebuf module to packetbuf to signal that the module is used outside of a pure Rime context (e.g., the sicslowpan code uses it). 2009-03-12 21:58:20 +00:00
joxe
d2dc732435 changed list_pop to return removed element 2008-12-16 09:59:42 +00:00
oliverschmidt
7cf3165155 Replaced NETSIM macro with general (and now actually working) solution in Makefile.include. 2008-11-17 22:52:10 +00:00
adamdunkels
34e2734cd9 Use the uip-over-mesh network gateway functionality 2008-11-09 12:30:32 +00:00
adamdunkels
0f82635dc9 Bugfix: avoid overflowing the event queue 2008-08-15 19:54:58 +00:00
adamdunkels
35d85897b9 Minor bugfix: the printf() must include the n 2008-08-15 19:34:07 +00:00
adamdunkels
7ca33e2285 Reverted inadvertedly committed change to lpp instead of nullmac 2008-05-27 19:07:20 +00:00
adamdunkels
7aa8508e0b Added display of radio status: a green ring appears around nodes with their radio turned on. Added a command that prints out a .fig file that shows the current network setup (press the 'd' key). 2008-05-14 19:22:57 +00:00
adamdunkels
31ea41d8db Changed the name of UIP_CONF_TCP_FORWARD to UIP_CONF_IP_FORWARD since forwarding is done at the IP level 2008-05-14 19:19:28 +00:00
adamdunkels
136443a387 Print out interface address 2008-03-03 20:21:59 +00:00
oliverschmidt
2632f8f937 Removed finally unnecessary cast. 2008-02-10 22:36:36 +00:00
adamdunkels
f5b08ff115 Added a crude hack for drawing lines between nodes 2008-02-03 20:49:50 +00:00
adamdunkels
28a3a51f82 Added uIP ICMP destimation unreachable message generation 2008-01-24 23:09:40 +00:00
adamdunkels
7a356d0fb5 Added support for (simulated) serial data input. Data written to netsim's standard input are now sent as serial data to the main node. 2008-01-14 09:38:16 +00:00
oliverschmidt
00d75c8d16 Made use of uip_ipaddr_to_quad(). 2008-01-04 23:28:33 +00:00
oliverschmidt
74fc3b4576 Made netsim gateway ip addr on Windows/Cygwin configurable at the command line. 2008-01-04 23:23:29 +00:00
oliverschmidt
5bff4631e4 Minor reformatting. 2008-01-04 23:09:03 +00:00
oliverschmidt
f75d01a428 Log ip addr in the ordinary way. 2008-01-04 22:21:04 +00:00
oliverschmidt
b96c9deebc Added "usual" comments. 2008-01-04 21:53:32 +00:00
oliverschmidt
e991edc24d Added route handling to the Cygwin build. It is done similiar to the other builds by simply shelling out to 'route'. However the coding isn't placed in the driver but in the netsim node main method - and it is fully parametrized.
Cygwin doesn't seem to call exit functions on SIGTERM so I needed to go for a signal handler in order to delete the route.
2007-12-17 01:12:09 +00:00
nvt-se
4a5ad23ff4 Make it compile on Linux. tz isn't used anyway. 2007-11-28 13:01:02 +00:00
adamdunkels
a725de0f79 Reimplemented waiting with select() instead of nanosleep(). Let's see if Linux compiles this code now... 2007-11-28 12:54:41 +00:00
nvt-se
34ebd14ec7 Removed usleep and moved the pseudo-random factor to nanosleep's argument. 2007-11-27 20:45:15 +00:00
adamdunkels
90c13c2603 Added time.h include to get nanosleep to compile 2007-11-27 20:32:08 +00:00
adamdunkels
4eae027dd3 Changed usleep() to nanosleep() 2007-11-26 23:28:33 +00:00
adamdunkels
1e1e44a3f8 Fixed compiler warnings to make code compile with gcc's -pedantic switch 2007-11-17 18:01:00 +00:00
nifi
a6d827fa1f moved initialization of ctimer to allow MAC layer to use ctimers 2007-11-15 13:07:42 +00:00
nvt-se
33e565d20a Removed unused variables.
Initialize header.
2007-11-14 11:17:30 +00:00
zhitao
ff006a5103 keep in synch with the Rime abstraction 2007-10-25 08:26:49 +00:00
adamdunkels
81dfaf575c Updated API 2007-05-22 21:09:19 +00:00
adamdunkels
6357c240c0 Added rtimer, ethernode rime initialization 2007-05-22 21:08:57 +00:00
adamdunkels
770632e079 Removed redundant file 2007-05-22 20:49:39 +00:00
oliverschmidt
a22d2ecfef Changed packet drivers from services to plain processes.
Now tcpip_output() is a function pointer that is supposed to be set via the macro tcpip_set_outputfunc(). Packet drivers do so on process startup.

Thus if there are several packet drivers in a Contiki system the one started last is the one actually used. This behaviour is especially useful for the 'IP forwarding' "meta" packet driver.
2007-05-20 21:41:31 +00:00
oliverschmidt
d4528e427f Changed Contiki File System (cfs) from a service to a plain library.
This change means that one needs to select _ONE_ cfs implementation at Contiki library link time. But this doesn't appear to be an issue as all platforms have their "favorite" implementation anyway.
2007-05-19 21:16:08 +00:00
oliverschmidt
237b1617b5 Factored out setup directory search path for source files into Makefile.include.
- Search target specific directories before CPU specific directories.
- Search CPU specific directories before generic directories.

Note: I checked several builds but nevertheless one or the other might need some additional adjustsments. Sorry for the inconvenience.
2007-05-13 08:41:11 +00:00
oliverschmidt
4fd1e3ece0 Added signed 32 bit data type. 2007-05-12 20:58:12 +00:00
oliverschmidt
4bf1ecc20e Made endianess configuration actually work. 2007-04-11 00:25:38 +00:00
adamdunkels
c24044e80c Made text appear lower to the right, made window larger to accommodate all nodes 2007-04-02 17:58:43 +00:00
adamdunkels
05692681a7 Stats are already printed during exit() 2007-04-02 10:03:35 +00:00