From e11783040603c5629d2e328532bafc1de9a33b63 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 26 Sep 2006 22:12:59 +0000 Subject: [PATCH] Must reset uip_slen to zero after transmit to avoid confusing uIP if it is invoked after this function --- core/net/uip-udp-packet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/net/uip-udp-packet.c b/core/net/uip-udp-packet.c index 1e02b4689..ec9897e0a 100644 --- a/core/net/uip-udp-packet.c +++ b/core/net/uip-udp-packet.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: uip-udp-packet.c,v 1.1 2006/08/31 09:35:27 adamdunkels Exp $ + * $Id: uip-udp-packet.c,v 1.2 2006/09/26 22:12:59 adamdunkels Exp $ */ /** @@ -55,5 +55,6 @@ uip_udp_packet_send(struct uip_udp_conn *c, char *data, int len) if(uip_len > 0) { tcpip_output(); } + uip_slen = 0; } /*---------------------------------------------------------------------------*/