diff options
author | Wolfgang Denk <wd@denx.de> | 2008-06-11 22:17:42 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-06-11 22:17:42 +0200 |
commit | 32d4e38eeb5bcc2f854787bfa68bea2b55eaa1d7 (patch) | |
tree | 35b56ce4860d33a3b75358251c6e4e4e7bdb38f9 /net/net.c | |
parent | 1730edf76c54381475e2da11f75b1ce563c4e62c (diff) | |
parent | 3b904ccb93c3196727e2e9870cb1df903cab19ad (diff) | |
download | u-boot-imx-32d4e38eeb5bcc2f854787bfa68bea2b55eaa1d7.zip u-boot-imx-32d4e38eeb5bcc2f854787bfa68bea2b55eaa1d7.tar.gz u-boot-imx-32d4e38eeb5bcc2f854787bfa68bea2b55eaa1d7.tar.bz2 |
Merge branch 'master' of git://www.denx.de/git/u-boot-net
Diffstat (limited to 'net/net.c')
-rw-r--r-- | net/net.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1407,6 +1407,10 @@ NetReceive(volatile uchar * inpkt, int len) if (ip->ip_off & htons(0x1fff)) { /* Can't deal w/ fragments */ return; } + /* can't deal with headers > 20 bytes */ + if ((ip->ip_hl_v & 0x0f) > 0x05) { + return; + } if (!NetCksumOk((uchar *)ip, IP_HDR_SIZE_NO_UDP / 2)) { puts ("checksum bad\n"); return; |