Commit graph

44 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
dak664 9bcf982d87 Update minimal net to new ds6 interface 2010-03-18 20:11:54 +00:00
dak664 3f5bb28383 Allow ip4 address override, show ip6 address 2010-02-02 17:51:55 +00:00
oliverschmidt f606253f58 Minor adjustment to predominant coding style. 2009-08-09 20:51:19 +00:00
dak664 d5047f43c1 Change ip4 addresses to agree with wiki 2009-08-08 11:42:05 +00:00
adamdunkels 6fcca2d545 Initialize ctimer, add IPv6 address configuration for the aaaa prefix 2009-04-29 11:49:27 +00:00
adamdunkels b1cd9c207a Removed serial.c, which is obsoleted by serial-line.c, which in turn now resides in Makefile.include 2009-03-17 21:51:13 +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 3848bba210 Added support for serial data input 2009-03-06 00:13:56 +00:00
adamdunkels 1d56451d11 Changed the default IP address to match the default setting in tapdev 2008-10-31 18:11:44 +00:00
adamdunkels ba43d94ef7 Define IPv6 options only if UIP_CONF_IPV6 is defined (which should be defined by the Makefile.include if IPv6 is enabled) 2008-10-15 09:14:25 +00:00
julienabeille 2238f2e7da Debugged autoconf for ethernet 2008-10-14 16:50:11 +00:00
julienabeille 9b2961046a Modifs to minimal-net for IPv6 support 2008-10-14 10:06:26 +00:00
adamdunkels b18b84bb0e Added clock_seconds implementation to minimal-net port 2008-07-10 17:10:39 +00:00
oliverschmidt b252bb9fc9 Removed finally unnecessary cast (and reverted unintentionally commited change). 2008-02-10 22:52:41 +00:00
oliverschmidt b96c9deebc Added "usual" comments. 2008-01-04 21:53:32 +00:00
oliverschmidt 0564cc50fd Splitted POSIX based cfs implementation to avoid pulling in potentially large POSIX directory I/O functions without needing them at all. 2007-12-21 01:36:01 +00:00
adamdunkels d6c597cf0b Added missing sys/select.h include 2007-11-28 14:16:12 +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
oliverschmidt 20d395e9b6 Added user feedback on IP configuration. 2007-11-25 15:00:32 +00:00
oliverschmidt f52ae57d99 Declare strcasecmp here as it isn't part of C99. 2007-11-18 00:46:26 +00:00
oliverschmidt 062e2a1ce4 Removed compiler warning. 2007-11-17 20:13:54 +00:00
oliverschmidt a300c31d7e Removed explicit shut down of network driver as it easily results in endless recursions on errors while network driver initialisation. 2007-05-23 22:01:14 +00:00
oliverschmidt a7dba4cc4f Explicitly shut down network driver. 2007-05-22 21:19:34 +00:00
oliverschmidt 5f3296e943 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:29:39 +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 8f0753c402 Link in and start the POSIX file system to make the telnet-server example 'ls' command generally work. Typically it will complain about not finding 'cfs-root/.' 2007-04-13 23:08:52 +00:00
oliverschmidt 4bf1ecc20e Made endianess configuration actually work. 2007-04-11 00:25:38 +00:00
oliverschmidt 2edc0246a3 Removed unnecessary directory reference. 2007-04-10 21:02:59 +00:00
oliverschmidt 01b9b31952 Moved wpcap*.[ch] from platform/minimal-net/net to cpu/native/net. 2007-04-01 20:39:05 +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 9da9650ff5 Removed stuff that was already in cpu/native/Makefile.native, and included it 2007-03-29 22:23:31 +00:00
oliverschmidt 571b956400 Added missing adjustment to recent change on moving all ARP handling to service wrappers. 2007-03-27 21:19:35 +00:00
oliverschmidt 1ca96b614a - Removed unnecessary PROCESS_POLLHANDLER(pollhandler()) as pollhandler is explicitly called.
- Moved all ARP handling to service wrappers (and narrowed interface to low level code).

- Unified general coding/formatting style.
2007-03-27 20:41:10 +00:00
oliverschmidt 8f160a3286 Added Cygwin networking support using WinPcap. 2007-03-26 02:53:54 +00:00
adamdunkels a9698f32fa Updated LD=gcc 2007-03-25 17:21:10 +00:00
oliverschmidt 62fa3b8c01 Changed the Contiki Interface declaration macros from CCI/CLI to CCIF/CLIF because of already existing macros: Both CCI and CLI :-( 2006-08-15 14:46:33 +00:00
oliverschmidt 48609fb3a3 Added defines for declaring functions/data which are part of the CCI (Contiki Core Interface) and CLI (Contiki Loadable Interface). Both defines are empty for all platforms but the upcoming Win32 port. 2006-08-13 15:06:08 +00:00
bg- 9009d8dc06 More uip_ipaddr_t fixes. 2006-08-10 19:22:23 +00:00
adamdunkels 212625f65c Architecture specific code for the LEDs API 2006-06-17 22:55:44 +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