mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-07 15:04:39 +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;
|
u16_t chklen;
|
||||||
LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP LITE packet length %"U16_F"\n", q->tot_len));
|
LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP LITE packet length %"U16_F"\n", q->tot_len));
|
||||||
/* set UDP message length in UDP header */
|
/* 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 < sizeof(struct udp_hdr)) {
|
||||||
if (chklen != 0) {
|
if (chklen != 0) {
|
||||||
LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP LITE pcb->chksum_len is illegal: %"U16_F"\n", chklen));
|
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