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
oliverschmidt
5bceecfbb0
Added Cygwin networking support using WinPcap.
2007-04-01 21:05:17 +00:00
adamdunkels
e6301c6221
Moved tapdev*.[ch] from platform/netsim/net and platform/minimal-net/net to cpu/native/net
2007-03-31 18:49:37 +00:00
adamdunkels
8e45418649
Made sure that two packets sent consecutively from the same node do not interfere with each other
2007-03-31 18:47:27 +00:00
adamdunkels
3908b238c1
Added debug output
2007-03-29 22:26:33 +00:00
adamdunkels
3abd973edb
Added route addition and removal when starting and exiting
2007-03-29 22:26:17 +00:00
adamdunkels
78043e4d24
Set an appropriate IP node address
2007-03-29 22:25:39 +00:00
adamdunkels
8935ccb74f
Removed reliance on a large uIP buffer configuration. Now internally uses 2048 bytes buffers regardless of uIP buffer size
2007-03-29 22:25:25 +00:00
adamdunkels
4a3f6b5e97
Put the correct tapdev_output() function in the tapdev netif
2007-03-29 22:24:47 +00:00
adamdunkels
39b5f9e81f
Added Rime buffer size, reduced uIP buffer size so that IP packets can be tunneled over Rime's mesh routing
2007-03-29 22:24:21 +00:00
adamdunkels
b83dd79b1d
Removed stuff that was already in cpu/native/Makefile.native
2007-03-29 22:23:49 +00:00
adamdunkels
227a3fa633
Removed old rt-arch and replaced it with rtimer-arch in cpu/native
2007-03-28 20:21:42 +00:00
adamdunkels
1dea784225
Set IP addess to match the setting in the ifconfig in net/tapdev.c
2007-03-28 20:15:39 +00:00
adamdunkels
9917b2fba4
Removed tapdev-drv
2007-03-28 20:15:15 +00:00
adamdunkels
846d8eb92b
Removed tapdev-drv, removed reliance on x86 platform
2007-03-28 20:14:59 +00:00
adamdunkels
af1c78dbe0
Replaced with tapdev-service.c
2007-03-28 20:14:11 +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
5b35ae82c7
Made netsim compile under MS Windows / cygwin
2007-03-23 12:23:38 +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
b2174f1010
Initialization file for setting up a lattice network
2007-03-21 09:07:15 +00:00
adamdunkels
45e2b19940
Architecture-specific code for the real-time module, for the native and netsim platforms
2007-03-19 00:26:54 +00:00
adamdunkels
f856806909
Fixed compiler warning
2007-03-15 21:59:10 +00:00
adamdunkels
79f04d8dcd
Updated to latest rim input/output function names
2007-03-15 21:58:37 +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
bc8016543a
Make netsim more like the esb target
2006-10-10 15:58:31 +00:00
adamdunkels
5a5b964b2e
UPdated to latest hc.c API
2006-10-09 11:56:49 +00:00