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:
commit
bfc1e816de
@ -243,13 +243,13 @@ fixup29:lda rxtxreg
|
|||||||
bne :+
|
bne :+
|
||||||
inc cnt+1
|
inc cnt+1
|
||||||
|
|
||||||
; Is cnt > bufsize ?
|
; Is bufsize < cnt ?
|
||||||
: sec
|
: sec
|
||||||
lda cnt
|
lda bufsize
|
||||||
sbc bufsize
|
sbc cnt
|
||||||
lda cnt+1
|
lda bufsize+1
|
||||||
sbc bufsize+1
|
sbc cnt+1
|
||||||
bcc :+
|
bcs :+
|
||||||
|
|
||||||
; Yes, skip frame
|
; Yes, skip frame
|
||||||
; PACKETPP = $0102, PPDATA = PPDATA | $0040
|
; PACKETPP = $0102, PPDATA = PPDATA | $0040
|
||||||
|
@ -262,13 +262,13 @@ fixup24:lda ethdata
|
|||||||
sbc #$00
|
sbc #$00
|
||||||
sta len+1
|
sta len+1
|
||||||
|
|
||||||
; Is len > bufsize ?
|
; Is bufsize < len ?
|
||||||
sec
|
sec
|
||||||
lda len
|
lda bufsize
|
||||||
sbc bufsize
|
sbc len
|
||||||
lda len+1
|
lda bufsize+1
|
||||||
sbc bufsize+1
|
sbc len+1
|
||||||
bcc :+
|
bcs :+
|
||||||
|
|
||||||
; Yes, skip packet
|
; Yes, skip packet
|
||||||
; Remove and release RX packet from the FIFO
|
; Remove and release RX packet from the FIFO
|
||||||
|
Loading…
Reference in New Issue
Block a user