mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-30 22:43:54 +08:00
PPP, PPPoS: wait for next packet when we drop a packet before it is complete
If we fail to receive a full packet, for exemple if a memory allocation fail for some reason, we currently do not wait for next packet flag character and we start filling a new packet at next received byte. Then we expect the checksum check to discard the packet. The behavior seem to have been broken one or two decades ago when adding support for PFC (Protocol-Field-Compression) and ACFC (Address-and-Control-Field-Compression). Rework to drop any character until we receive a flag character at init and when we drop a packet before it is complete.
This commit is contained in:
@@ -50,7 +50,6 @@ extern "C" {
|
||||
* completed. */
|
||||
enum {
|
||||
PDIDLE = 0, /* Idle state - waiting. */
|
||||
PDSTART, /* Process start flag. */
|
||||
PDADDRESS, /* Process address field. */
|
||||
PDCONTROL, /* Process control field. */
|
||||
PDPROTOCOL1, /* Process protocol field 1. */
|
||||
|
||||
Reference in New Issue
Block a user