lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #16377] MEM_ALIGN and MEM_ALIGN_SIZE


From: anonymous
Subject: [lwip-devel] [bug #16377] MEM_ALIGN and MEM_ALIGN_SIZE
Date: Wed, 19 Apr 2006 01:59:04 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2

URL:
  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=16377>

                 Summary: MEM_ALIGN and MEM_ALIGN_SIZE
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: None
            Submitted on: Wednesday 04/19/06 at 01:59 UTC
                Category: pbufs
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

Is it good to change the code "p->next = (struct pbuf *)((u8_t *)p +
PBUF_POOL_BUFSIZE + sizeof(struct pbuf));" within the function "pbuf_init" to
"p->next = (struct pbuf *)((u8_t *)p + MEM_ALIGN_SIZE(PBUF_POOL_BUFSIZE +
sizeof(struct pbuf))); "

to change the code "p->payload = (void *)((u8_t *)p + sizeof(struct pbuf)); "
within the function "pbuf_free" to "p->payload = MEM_ALIGN((void *)((u8_t *)p
+ sizeof(struct pbuf)));
"








    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=16377>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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