Updated API for uiplib and resolv to use uip_ipaddr_t instead of uint16_t for compability with IPv6

This commit is contained in:
nifi 2010-05-31 15:22:08 +00:00
parent c13bb8666b
commit b54c6e673b
22 changed files with 194 additions and 106 deletions

View file

@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
* $Id: shell-udpsend.c,v 1.5 2010/02/04 15:23:15 nifi Exp $
* $Id: shell-udpsend.c,v 1.6 2010/05/31 15:22:08 nifi Exp $
*/
#include <string.h>
@ -94,7 +94,7 @@ PROCESS_THREAD(shell_udpsend_process, ev, data)
++next;
port = shell_strtolong(next, &nextptr);
uiplib_ipaddrconv(server, (uint8_t *)&serveraddr);
uiplib_ipaddrconv(server, &serveraddr);
udpconn = udp_new(&serveraddr, htons(port), NULL);
if(next != nextptr) {