Coder Social home page Coder Social logo

Comments (6)

aguirrem avatar aguirrem commented on August 16, 2024

I just noticed this too! I was trying to figure out what had changed.
Could the same be said for platforms that don't have crypto or have it disabled?

from contiki.

aguirrem avatar aguirrem commented on August 16, 2024

👍
I have tested the changes proposed here with good results

from contiki.

adamdunkels avatar adamdunkels commented on August 16, 2024

Nice! Does anyone have a patch/pull request?

from contiki.

g-oikonomou avatar g-oikonomou commented on August 16, 2024

This was more like a bug report.

If the proposed change works it's only a fluke, it was off the top of my head

On 18 Nov 2013, at 06:23, Adam Dunkels [email protected] wrote:

Nice! Does anyone have a patch/pull request?


Reply to this email directly or view it on GitHub.

from contiki.

aguirrem avatar aguirrem commented on August 16, 2024

I am not very familiar with that part of the code or the reasons why it changed.
Can anyone shed into @g-oikonomou speculations above? I can put a pull request together if the fix is acceptable

from contiki.

laurentderu avatar laurentderu commented on August 16, 2024

MAC_MAX_PAYLOAD should be replaced by the maximum PHY frame size. There is one caveat though, if the framer appends bytes after the payload, they are not included in framer_hdrlen. In case of 802.15.4 the FCS is appended, so you have to replace MAC_MAX_PAYLOAD by 127 - 2. By doing that there is no need to use max(framer_hdrlen, 25)

ce99c02 from #557 fixes this as a side effect

Maybe a cleaner solution would be to add a function in framer to return the len of appended data.

from contiki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.