AT91SAM7X: gracefully drop bad frames read from the EMAC
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 3 Nov 2010 09:46:51 +0000 (09:46 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 3 Nov 2010 09:46:51 +0000 (09:46 +0000)
commit1cc52b017c6213f9e52e678d176b9eeaf2a892ca
tree7370b1578028e7a983b626dabbb194e01d474098
parent3a0ab02b49fb8517c146556432d5f116b88db9a5
AT91SAM7X: gracefully drop bad frames read from the EMAC

When a host in the same subnet changes their IP / mac address
association, we could have some "deprecated" frames in the ethernet
buffer.

The hardware seems to explicitly mark them, cleaning the ownership bit.
If this happens simply drop the frame and do not pass it to the upper
layers.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4494 38d2e660-2303-0410-9eaa-f027e97ec537
bertos/cpu/arm/drv/eth_at91.c