lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] using LWIP_PBUF_CUSTOM_DATA together with socket api


From: Massimiliano Cialdi
Subject: [lwip-users] using LWIP_PBUF_CUSTOM_DATA together with socket api
Date: Sat, 19 Feb 2022 20:12:39 +0100

I'm trying to port a project to lwip. This project uses BSD sockets
calls, so first, I used lwip's socket APIs.
The project I'm trying to port has to deal with packet timestamping,
that's why I used LWIP_PBUF_CUSTOM_DATA as explained here
https://savannah.nongnu.org/bugs/?55078
This way I can "enrich" the pbuf structure with metadata fields of my own.

The question is: how do I retrieve my metadata using the socket API?
For example how do I get a read pbuf? Or how do I convert the socket
to a netconn?

best regards
Max

-- 
Et nunc, auxilium solis, vincam!
Oppugnatio solaris!
VIS!



reply via email to

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