Correct a buffer size error in the STM32 ethernet driver

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4403 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo
2012-02-18 22:09:09 +00:00
parent f04310d559
commit c3e6ead339
6 changed files with 42 additions and 29 deletions
+5 -1
View File
@@ -2468,4 +2468,8 @@
this is little more than a "skeleton" file.
* Various files: CAN ISO-11783 support contributed by Gary Teravskis.
* net/recv.c and net/recvfrom.c: Correct a bug in return value: The the peer
gracefully closes the connections, needs to return zero and not ENOTCONN
gracefully closes the connections, needs to return zero and not ENOTCONN.
* arch/arm/src/stm32/stm32_eth.c: Fix an error in the STM32 ethernet driver.
The received buffer size must be two bytes larger to account for the two byte
checksum that is appended to the packet. Otherwise, the last two bytes of
real data in the packet will get clobbered.