On Sat, Feb 19, 2022 at 9:38 PM goldsi...@gmx.de <goldsi...@gmx.de> wrote: > The easiest way probably might be to implement a socket read function > that returns netbufs instead of the standard socket read function. But > that's not implemented yet. I finally decided to reimplement a read function, and it works! Now I have the opposite problem: I need to timpestamp only some special packages, not all of them. My desire is to be able to call a function of mine that sets a flag in the metadata that is then used in the function closest to the hw, that performs the actual sending, activating or not the hw timestamping for that packet.
Unfortunately the sendto() function and all other functions that are used to send and that directly or indirectly use pbuf do not use an allocator like calloc that populates all allocated memory to 0. How can I initialize my metadata flowing from the application to the hw in all cases? best regards Max -- Et nunc, auxilium solis, vincam! Oppugnatio solaris! VIS! _______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users