Commit graph

17 commits

Author SHA1 Message Date
adamdunkels
b6ac4e00d8 Reverted the htons -> uip_htons change - tunslip is intended to be compiled under *nix, not as a Contiki program 2010-11-25 09:17:39 +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
adamdunkels
3106840c56 Code style fixes 2008-02-24 21:13:36 +00:00
bg-
4275601eb8 * Line buffered stdout (also when pipe). 2007-05-21 15:22:45 +00:00
bg-
cca02a05ed * 6 should be 4 in size of DHCP messages.
* -w option to sysctl.
2007-05-02 08:58:00 +00:00
bg-
1c3ac47557 * Only copy first DNS server (correctly). 2007-04-30 12:28:29 +00:00
bg-
95ea7bdff1 * Different ifconfig command under fbsd. 2007-04-04 11:54:45 +00:00
bg-
429d41defd * General stuff for different baudrates:
- ubr argument to slip_arch_int

    - macros for calculating ubr

    - argument -Bbaudrate to tools tunslip and scat
2007-02-02 13:26:48 +00:00
bg-
6690d7ca8f * Check for ip_id zero senders and low cost update of zero ip_id. 2007-02-01 14:35:23 +00:00
bg-
3ba41f731d * Support for -DBAUDRATE=xxx 2007-01-23 12:33:27 +00:00
bg-
2ae3edb0d5 * Minor mod for FreeBSD 6. 2007-01-12 18:23:19 +00:00
barner
7f5c1fde0f Add 'cuad0' device. 2006-12-22 17:25:13 +00:00
bg-
d90f2d9824 * Bump speed over serial to 115200 (Tmote sky only).
* Linux fread workaround.

* IP address detection.

* Use SIGALRM rather than select timeout.
2006-12-01 15:09:57 +00:00
bg-
1429faa22e Fancier tunslip with keepalives, address detection, route management,
route cleanup.
2006-09-26 15:45:09 +00:00
bg-
63c431a271 Oops. broken backwards compat. 2006-09-07 17:05:21 +00:00
bg-
e521d25241 Add processing of command line options but stay backwards compatible. 2006-09-07 15:48:47 +00:00
bg-
c94a70e0b3 Import of userspace SLIP implementation. 2006-08-02 14:40:47 +00:00