Commit Graph

57 Commits

Author SHA1 Message Date
dak664
89741bd322 Exit on watchdog reboot call 2011-04-07 17:47:54 -04:00
Oliver Schmidt
5da4faf71e Allow VC++ to be used as alternative to GCC for building in the WIN32 target.
TODOs:
- Update README
- Add dependency handling
- Add rtimersupport
2011-04-03 22:32:11 +02:00
Oliver Schmidt
f83fb3704b Replaced make-empty-symbols with empty-symbols.[c|h]
The symbol generation shell scripts cause CRLF issues on Windows/Cygwin again and again. Instead of fixing this yet again I opted to remove the symbol generation script at least for the "no symbols" scenario with two C source files to be copied.
2011-04-03 13:24:58 +02:00
oliverschmidt
842c6a018a The recent global change regarding htons allowed to remove this hack :-) 2010-10-19 20:30:47 +00:00
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
oliverschmidt
ffce456612 If rtimer_arch_now() is mapped to clock_time() it seems reasonable to map RTIMER_ARCH_SECOND to CLOCK_CONF_SECOND for consistency reasons. 2010-04-05 15:10:06 +00:00
adamdunkels
18486d4e3d Patch by Gideon Ernst: use explicit $(CONTIKI) path instead of implicit ../../ path to the mknmlist script 2009-09-03 17:41:58 +00:00
dak664
d2a6637627 Block NS echoback from interface 2009-08-13 18:41:00 +00:00
dak664
d37115f2c0 ipv6 fixes and formatting 2009-08-11 16:06:17 +00:00
oliverschmidt
f930dadf9f There seems no reason for the whole set_ethaddr() thing if uip_setethaddr() doesn't get called after all. 2009-08-09 20:44:42 +00:00
dak664
72d5442e05 wpcap update for uIPv6 2009-08-08 19:51:25 +00:00
adamdunkels
00890caca8 Make sure that symbols.c is included in every native cpu build, not just the native target 2009-05-12 17:23:23 +00:00
oliverschmidt
3c2662519f Tried to make reference to Microsoft TechNet Forum thread more persistent. 2009-01-15 22:17:47 +00:00
oliverschmidt
4b268298cc Added infos on Vista loopback connection handling. 2008-11-17 22:38:05 +00:00
oliverschmidt
a844636218 Minor docu update. 2008-11-13 20:26:27 +00:00
julienabeille
2238f2e7da Debugged autoconf for ethernet 2008-10-14 16:50:11 +00:00
julienabeille
30f545c397 *** empty log message *** 2008-10-14 14:54:23 +00:00
julienabeille
085df124fd tapdev update for uIPv6 2008-10-14 14:38:10 +00:00
julienabeille
632a3585f5 Modification to tapdev for IPv6 support 2008-10-14 09:47:15 +00:00
nvt-se
6440c3de81 removed unnecessary inclusion 2008-07-04 03:03:41 +00:00
adamdunkels
871598fb24 Added dummy watchdog.c to allow compiling and running code that calls the watchdog functions 2008-07-03 23:10:25 +00:00
adamdunkels
9d7c81d4ed Added missing IPBUF definition needed for IPv6 2008-06-23 19:53:16 +00:00
adamdunkels
d094fe254f Fixed problems with IPv6-enabled Windows XP 2008-06-23 19:52:44 +00:00
oliverschmidt
a685acd23a Turned rtimer_arch_now() from a (one line) function into a macro. 2008-02-09 14:02:12 +00:00
adamdunkels
f2599b38e7 Added a WERROR variable, which, if set, causes -Werror flags to be turned on 2008-01-17 12:07:32 +00:00
adamdunkels
a46aceb5f8 Added generation of symbols.c if CORE is set 2008-01-08 08:04:41 +00:00
oliverschmidt
b96c9deebc Added "usual" comments. 2008-01-04 21:53:32 +00:00
adamdunkels
95ffdc283e Forgot to remove -Werror 2007-11-28 17:17:19 +00:00
adamdunkels
7e89af8992 Removed -Werror -pedantic and -std=c99 because of problems with compiling under Linux 2007-11-28 17:15:15 +00:00
oliverschmidt
67af780c93 Made include paths consistent. 2007-11-27 20:54:10 +00:00
oliverschmidt
689e0f077a Added some info on the wpcap driver. 2007-11-27 13:06:55 +00:00
oliverschmidt
b8b6b6239e Allow to build both with Cygwin and VC++. 2007-11-17 21:33:53 +00:00
oliverschmidt
eb3fda68c7 Source reformatting only. 2007-11-17 20:00:42 +00:00
adamdunkels
1e1e44a3f8 Fixed compiler warnings to make code compile with gcc's -pedantic switch 2007-11-17 18:01:00 +00:00
adamdunkels
1070fe19a3 Added rtimer_arch_now prototype 2007-11-17 10:47:22 +00:00
adamdunkels
4ce9b8a33b Added -Werror to turn compiler warnings into errors to ensure that code always compile without warnings 2007-11-17 10:37:28 +00:00
oliverschmidt
63a6493e5c Made tapdev and wpcap driver similiar making up a "driver template". 2007-08-10 14:59:59 +00:00
oliverschmidt
6ab3a6d1e3 Fixed copy&paste bug. 2007-05-26 22:51:38 +00:00
oliverschmidt
1629c207b5 That PROCESS_EXITHANDLER() thing was after all kind of overengineered... 2007-05-23 22:13:29 +00:00
oliverschmidt
0bf8c95b79 Made use of exit handler. 2007-05-22 22:01:03 +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
61f54204d7 Improved map file naming consistency. 2007-05-19 21:46:43 +00:00
oliverschmidt
ae2073cac9 Factored out setup directory search path for source files into Makefile.include.
- All compilers used support the -I option for setting an include search directory.

- The Contiki source tree follows the (common) approach of placing declarations (in headerf iles) in the same directory as definitions (in source files).

As a result it makes sense to use the -I compiler option for just the same set of directories used for the vpath gnumake directive.

Note: I checked several builds but nevertheless one or the other might need some additional adjustsments. Sorry for the inconvenience.
2007-05-19 07:54:53 +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
274afdb55c Made driver compilable with both Cygwin and VC++ (and usable for platform/win32 by using logging API). 2007-04-11 00:21:28 +00:00
oliverschmidt
9cc1871810 Fixed stupid bug. I have no idea how I didn't run into this one for months ! The development platforms have 400-600 bytes buffer size. So every incoming 1500 packet overwrote ~ 1000 bytes of uIP variables. And this happens very easily as every packet coming in for the Windows IP stack is seen by uIP as well (and discarded because of the wrong IP address). 2007-04-08 20:06:56 +00:00
oliverschmidt
e37d79e4a3 Don't rely on gcc's auto-import feature. 2007-04-07 00:27:22 +00:00
oliverschmidt
e5d3453a79 Minor code formatting change. 2007-04-05 19:42:47 +00:00
oliverschmidt
be08e76366 Now that Contiki has a htonl() we need the same workaround here that we already have for htons(). 2007-04-05 19:41:02 +00:00
oliverschmidt
d41c0671d9 Ooops, that was one level of indirection to much. 2007-04-03 18:37:15 +00:00