lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] using LWIP_PBUF_CUSTOM_DATA together with socket api


From: Massimiliano Cialdi
Subject: Re: [lwip-users] using LWIP_PBUF_CUSTOM_DATA together with socket api
Date: Mon, 21 Feb 2022 13:15:58 +0100

On Sat, Feb 19, 2022 at 9:38 PM goldsimon@gmx.de <goldsimon@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!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]