mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00
In udp_input, for UDP Lite, chksum_len_tx was used instead of chksum_len_rx
This commit is contained in:
parent
ab4b59afb9
commit
6336279ce0
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user