Commit Graph

37 Commits

Author SHA1 Message Date
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
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
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
34e2734cd9 Use the uip-over-mesh network gateway functionality 2008-11-09 12:30:32 +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
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
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
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
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
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
zhitao
ff006a5103 keep in synch with the Rime abstraction 2007-10-25 08:26:49 +00:00
adamdunkels
6357c240c0 Added rtimer, ethernode rime initialization 2007-05-22 21:08:57 +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
5bceecfbb0 Added Cygwin networking support using WinPcap. 2007-04-01 21:05:17 +00:00
adamdunkels
4a3f6b5e97 Put the correct tapdev_output() function in the tapdev netif 2007-03-29 22:24:47 +00:00
adamdunkels
9917b2fba4 Removed tapdev-drv 2007-03-28 20:15:15 +00:00
oliverschmidt
342e720cfd - Moved all ARP handling to service wrapper (and narrowed interface to low level code).
- Adjusted packet forwarding to moving all ARP handling to service wrapper.

- Unified general coding/formatting style.
2007-03-27 21:47:17 +00:00
adamdunkels
a34f6afe22 CFS RAM started 2007-03-22 23:59:26 +00:00
adamdunkels
1b762247fa Added uip-over-mesh, bugfixes, printing of statistics, renamed init() function to netsim_init() 2007-03-22 18:59:34 +00:00
adamdunkels
03f847d280 Added rime include 2007-03-15 21:58:13 +00:00
adamdunkels
9d030483ff Removed ethernode uIP driver from the main code 2007-03-14 00:32:30 +00:00
adamdunkels
4477d81be4 Added Rime driver for the netsim ethernode layer, renamed init.c to netsim-init.c 2007-03-13 13:07:47 +00:00
adamdunkels
c67ce1c1b0 Added hack for letting nodes signal that they are 'done'. The simulator exits when all nodes are done. Fixed random initialization so that it is different for all nodes. 2006-10-23 09:01:06 +00:00
adamdunkels
0e8cdd9e8e Added radio signal strength simulation 2006-10-06 08:25:30 +00:00
bg-
a99f0ca352 * More uip_ipaddr_t fixes. 2006-08-14 14:01:02 +00:00
adamdunkels
c9e808d638 Import of the contiki-2.x development code from the SICS internal CVS server 2006-06-17 22:41:10 +00:00