From 6336279ce045596306a61a3b9f004ed7f137481f Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 12 Jun 2007 07:03:32 +0000 Subject: [PATCH] In udp_input, for UDP Lite, chksum_len_tx was used instead of chksum_len_rx --- src/core/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/udp.c b/src/core/udp.c index 6229fc8a..6c2ab53a 100644 --- a/src/core/udp.c +++ b/src/core/udp.c @@ -414,7 +414,7 @@ udp_send(struct udp_pcb *pcb, struct pbuf *p) u16_t chklen; LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP LITE packet length %"U16_F"\n", q->tot_len)); /* set UDP message length in UDP header */ - chklen = pcb->chksum_len_tx; + chklen = pcb->chksum_len_rx; if (chklen < sizeof(struct udp_hdr)) { if (chklen != 0) { LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP LITE pcb->chksum_len is illegal: %"U16_F"\n", chklen));