From 537ecb91985c8261d533802bb526e9755a1f5933 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Thu, 15 Mar 2007 09:56:00 +0000 Subject: [PATCH] UDP initialization fixed --- core/net/rime/abc-udp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/net/rime/abc-udp.c b/core/net/rime/abc-udp.c index 9f3b2a8ca..501e831cc 100644 --- a/core/net/rime/abc-udp.c +++ b/core/net/rime/abc-udp.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: abc-udp.c,v 1.3 2007/03/14 00:29:05 adamdunkels Exp $ + * $Id: abc-udp.c,v 1.4 2007/03/15 09:56:00 adamdunkels Exp $ */ /** @@ -39,6 +39,7 @@ */ #include "net/rime.h" +#include "contiki-net.h" #define PORT 8096 static struct uip_udp_conn *c; @@ -46,9 +47,8 @@ static struct uip_udp_conn *c; PROCESS(abc_udp_process, "abc_udp"); PROCESS_THREAD(abc_udp_process, ev, data) { - struct abc_conn *c; - c = uip_udp_new(HTONS(PORT), NULL); + c = udp_new(&uip_broadcast_addr, HTONS(PORT), NULL); PROCESS_BEGIN();