[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #55078] Add custom data to pbuf struct
From: |
Thomas Kindler |
Subject: |
[lwip-devel] [bug #55078] Add custom data to pbuf struct |
Date: |
Fri, 29 Jan 2021 11:08:28 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36 |
Follow-up Comment #2, bug #55078 (project lwip):
I use this feature for adding PTP timestamps:
lwipopts.h:
#define LWIP_PBUF_CUSTOM_DATA \
u8_t timestamp_flags; \
struct timespec timestamp;
Question:
How do I make sure, that the fields are initialized to zero?
pbuf_init_alloced_pbuf() function only initializes the old members, but leaves
my own field uninitialized.
Perhaps we should add a LWIP_PBUF_CUSTOM_DATA_INIT_HOOK macro or something?
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/bugs/?55078>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-devel] [bug #55078] Add custom data to pbuf struct,
Thomas Kindler <=