summaryrefslogtreecommitdiff
path: root/hw/net/dp8393x.c
diff options
context:
space:
mode:
authorHervé Poussineau <hpoussin@reactos.org>2015-07-24 20:42:23 +0200
committerLeon Alrae <leon.alrae@imgtec.com>2015-07-28 09:30:09 +0100
commit30dfa9a46cd845db3f43f5c11b129f4a50941b02 (patch)
treefefa87201beef236f4265de27d8def5cc28adbec /hw/net/dp8393x.c
parentf6351288b65130deb8102b17143f5d84f817a02a (diff)
downloadqemu-30dfa9a46cd845db3f43f5c11b129f4a50941b02.tar.gz
net/dp8393x: remove check of runt packets
Ethernet requires that messages are at least 64 bytes on the wire. This limitation does not exist on emulation (no wire message), so remove the check. Netcard is now able to receive small network packets. Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Diffstat (limited to 'hw/net/dp8393x.c')
-rw-r--r--hw/net/dp8393x.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/hw/net/dp8393x.c b/hw/net/dp8393x.c
index 93d6a47031..0f45146ebc 100644
--- a/hw/net/dp8393x.c
+++ b/hw/net/dp8393x.c
@@ -643,11 +643,6 @@ static int dp8393x_receive_filter(dp8393xState *s, const uint8_t * buf,
static const uint8_t bcast[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
int i;
- /* Check for runt packet (remember that checksum is not there) */
- if (size < 64 - 4) {
- return (s->regs[SONIC_RCR] & SONIC_RCR_RNT) ? 0 : -1;
- }
-
/* Check promiscuous mode */
if ((s->regs[SONIC_RCR] & SONIC_RCR_PRO) && (buf[0] & 1) == 0) {
return 0;