[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #55078] Add custom data to pbuf struct
From: |
Max |
Subject: |
[lwip-devel] [bug #55078] Add custom data to pbuf struct |
Date: |
Wed, 23 Feb 2022 11:47:38 -0500 (EST) |
Follow-up Comment #3, bug #55078 (project lwip):
[comment #2 comment #2:]
> 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?
>
I just submitted the patch #10181
<https://savannah.nongnu.org/patch/index.php?10181> for it
_______________________________________________________
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,
Max <=