8000 Library incorrectly pads small packets · Issue #23 · xmos/lib_xtcp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Library incorrectly pads small packets #23

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

Closed
pthedinger opened this issue Jan 4, 2017 · 2 comments
Closed

Library incorrectly pads small packets #23

pthedinger opened this issue Jan 4, 2017 · 2 comments

Comments

@pthedinger
Copy link

In xcoredev.xc, lines 100-103 it incorrectly uses 64 bytes as the minimum packet size and pads:

    if (len < 64)  {
      for (int i=len;i<64;i++)
        (uip_buf32, unsigned char[])[i] = 0;
      len=64;
    }

This should be 60, as the CRC will be automatically added to make the size up to the minimum frame size of 64 bytes.

@ahogen
Copy link
ahogen commented Mar 13, 2018

Fixed in commit ed83ea5

@samchesney
Copy link
Contributor

Thank you @ahogen.

Closing as fix this is fixed on master.

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

3 participants
0