Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cemi_frame.cpp #227

Open
ecarjat opened this issue Jan 18, 2023 · 0 comments
Open

cemi_frame.cpp #227

ecarjat opened this issue Jan 18, 2023 · 0 comments

Comments

@ecarjat
Copy link

ecarjat commented Jan 18, 2023

I am using the stack for a TP/IP coupler using an RP2040 and a W5500. I have managed to get the coupler to work, however in order for the ethernet frame to be sent, I've had to modify the check for frame length in cemi_frame.cpp.

Previous code on line 371
if (_length != 0 && _length != (addInfoLen + apduLen + NPDU_LPDU_DIFF + 2))

New code
if (_length != 0 && _length != (addInfoLen + apduLen + NPDU_LPDU_DIFF + 3))

On my system the frame is never valid with the original code. Is this being used elsewhere that in a TP/IP couple scenario ? And why would the check for frame length be different in another scenario ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant