[bug #55078] Add custom data to pbuf struct

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug #55078] Add custom data to pbuf struct

Jasper Verschueren
URL:
  <https://savannah.nongnu.org/bugs/?55078>

                 Summary: Add custom data to pbuf struct
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: drizzi
            Submitted on: Fri 23 Nov 2018 03:49:34 PM UTC
                Category: pbufs
                Severity: 3 - Normal
              Item Group: Feature Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: 2.1.1

    _______________________________________________________

Details:

It can be necessary, or otherwise handy, to add custom data to pbuf struct
(e.g.: timestamps for PTP).

I propose to add LWIP_PBUF_CUSTOM_DATA at the end of struct pbuf, and defining
it empty in opt.h. The user can then define it in lwipopts.h to whatever it
wants.






    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?55078>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

[bug #55078] Add custom data to pbuf struct

Jasper Verschueren
Update of bug #55078 (project lwip):

                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up Comment #1:

I implemented your suggestion!

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?55078>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel