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
|
@ -31,7 +31,7 @@
|
|||
*
|
||||
* Author: Adam Dunkels <adam@sics.se>
|
||||
*
|
||||
* $Id: tapdev6.c,v 1.3 2008/10/14 16:50:11 julienabeille Exp $
|
||||
* $Id: tapdev6.c,v 1.4 2010/10/19 18:29:04 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
|
||||
|
@ -211,7 +211,7 @@ u8_t tapdev_send(uip_lladdr_t *lladdr)
|
|||
memcpy(&BUF->dest, lladdr, UIP_LLADDR_LEN);
|
||||
}
|
||||
memcpy(&BUF->src, &uip_lladdr, UIP_LLADDR_LEN);
|
||||
BUF->type = HTONS(UIP_ETHTYPE_IPV6); //math tmp
|
||||
BUF->type = UIP_HTONS(UIP_ETHTYPE_IPV6); //math tmp
|
||||
|
||||
uip_len += sizeof(struct uip_eth_hdr);
|
||||
do_send();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue