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.
This commit is contained in:
parent
5a46c629de
commit
5585d72c86
115 changed files with 675 additions and 675 deletions
|
@ -30,7 +30,7 @@
|
|||
*
|
||||
* Author: Adam Dunkels <adam@sics.se>
|
||||
*
|
||||
* $Id: shell-ping.c,v 1.4 2010/05/31 15:22:08 nifi Exp $
|
||||
* $Id: shell-ping.c,v 1.5 2010/10/19 18:29:03 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
@ -113,7 +113,7 @@ send_ping(uip_ipaddr_t *dest_addr)
|
|||
UIP_ICMP_BUF->type = ICMP_ECHO;
|
||||
UIP_ICMP_BUF->icode = 0;
|
||||
UIP_ICMP_BUF->id = 0xadad;
|
||||
UIP_ICMP_BUF->seqno = htons(seqno++);
|
||||
UIP_ICMP_BUF->seqno = uip_htons(seqno++);
|
||||
|
||||
uip_len = UIP_ICMPH_LEN + UIP_IPH_LEN + PING_DATALEN;
|
||||
UIP_IP_BUF->len[0] = (u8_t)((uip_len) >> 8);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue