Commit Graph

7 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
nifi
b54c6e673b Updated API for uiplib and resolv to use uip_ipaddr_t instead of uint16_t for compability with IPv6 2010-05-31 15:22:08 +00:00
nifi
8cf4821a73 added check for too long server name 2010-02-04 15:23:15 +00:00
adamdunkels
4ea2312f23 Rewrote NULL-termination code to avoid writing to a const array 2010-02-04 14:59:08 +00:00
adamdunkels
35f8d24c2e Bugfix: zero-terminate string before copying 2010-02-04 11:20:09 +00:00
adamdunkels
2289ced2bb Fixed compilation problems, added new commands to shell.h 2009-03-06 07:23:08 +00:00
adamdunkels
ddafef15e9 Added three commands for IP interaction in the shell: ping (sends ICMP ping messages), tcpsend (sets up TCP connections for sending and receiving data), and udpsend (sends and receives UDP packets) 2009-03-06 00:29:33 +00:00