Merge pull request #100 from oliverschmidt/master

Do not reject frames with a length exactly equal to the uIP bufer size.
This commit is contained in:
Oliver Schmidt 2013-01-30 14:42:12 -08:00
commit bfc1e816de
2 changed files with 39 additions and 39 deletions

View File

@ -243,13 +243,13 @@ fixup29:lda rxtxreg
bne :+
inc cnt+1
; Is cnt > bufsize ?
; Is bufsize < cnt ?
: sec
lda cnt
sbc bufsize
lda cnt+1
sbc bufsize+1
bcc :+
lda bufsize
sbc cnt
lda bufsize+1
sbc cnt+1
bcs :+
; Yes, skip frame
; PACKETPP = $0102, PPDATA = PPDATA | $0040

View File

@ -262,13 +262,13 @@ fixup24:lda ethdata
sbc #$00
sta len+1
; Is len > bufsize ?
; Is bufsize < len ?
sec
lda len
sbc bufsize
lda len+1
sbc bufsize+1
bcc :+
lda bufsize
sbc len
lda bufsize+1
sbc len+1
bcs :+
; Yes, skip packet
; Remove and release RX packet from the FIFO