Commit graph

17 commits

Author SHA1 Message Date
adamdunkels 5585d72c86 A simple but substantial change: uIP used the htons()/HTONS() macro
functions for converting between host and network byte order. These
names are the de facto standard names for this functionality because
of the original BSD TCP/IP implementation. But they cause problems for
uIP/Contiki: some platforms define these names themselves (Mac OS,
most notably), causing compilation problems for Contiki on those
platforms.

This commit changes all htons to uip_htons instead. Same goes for
htonl, ntohs, and ntohl. All-caps versions as well.
2010-10-19 18:29:03 +00:00
adamdunkels 69a5b67523 Updated netsim to new netstack API 2010-02-23 18:44:08 +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
joxe d2dc732435 changed list_pop to return removed element 2008-12-16 09:59:42 +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 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
adamdunkels 1e1e44a3f8 Fixed compiler warnings to make code compile with gcc's -pedantic switch 2007-11-17 18:01:00 +00:00
nvt-se 33e565d20a Removed unused variables.
Initialize header.
2007-11-14 11:17:30 +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 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 1b762247fa Added uip-over-mesh, bugfixes, printing of statistics, renamed init() function to netsim_init() 2007-03-22 18:59:34 +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
adamdunkels 58b7f8de5b Added a hack for setting a text label on each simulated node 2006-09-26 22:10:12 +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