zephyr/drivers/net
Marcin Niestroj d08c6ee113 drivers: net: ppp: fix removing CRC16 from packet
CRC16 was removed by simply decreasing length of the last fragment by 2.
This worked as long as last fragment was longer than 1 byte. If not,
then last fragment was corrupted (its length ended up being 65535),
leading to undefined behavior.

Fix CRC16 removal by utilizing recently introduced
net_pkt_remove_tail(), that properly handles multiple fragments.

Reported-by: Jim Paris <jim@jim.sh>
Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2021-07-15 06:54:33 -04:00
..
CMakeLists.txt
Kconfig
loopback.c drivers: net: remove usage of device_pm_control_nop 2021-04-28 12:25:24 -04:00
ppp.c drivers: net: ppp: fix removing CRC16 from packet 2021-07-15 06:54:33 -04:00
slip.c drivers: net: remove usage of device_pm_control_nop 2021-04-28 12:25:24 -04:00