ping-ipv6 example compiles on native cygwin

This commit is contained in:
julienabeille 2008-10-14 13:39:12 +00:00
parent b693690fbe
commit 4f9bc05f90
6 changed files with 43 additions and 22 deletions

View file

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: uip-udp-packet.c,v 1.5 2007/11/17 18:05:21 adamdunkels Exp $
* $Id: uip-udp-packet.c,v 1.6 2008/10/14 13:39:12 julienabeille Exp $
*/
/**
@ -46,6 +46,7 @@ extern u16_t uip_slen;
#include <string.h>
/*---------------------------------------------------------------------------*/
void
uip_udp_packet_send(struct uip_udp_conn *c, const void *data, int len)
@ -55,9 +56,13 @@ uip_udp_packet_send(struct uip_udp_conn *c, const void *data, int len)
uip_slen = len;
memcpy(&uip_buf[UIP_LLH_LEN + UIP_IPUDPH_LEN], data, len > UIP_BUFSIZE? UIP_BUFSIZE: len);
uip_process(UIP_UDP_SEND_CONN);
#if UIP_CONF_IPV6 //math
tcpip_ipv6_output();
#else
if(uip_len > 0) {
tcpip_output();
tcpip_output();
}
#endif
uip_slen = 0;
#endif /* UIP_UDP */
}