lwip-devel
[Top][All Lists]
Advanced

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

ODP: [lwip-devel] [bug #26135] Don'tneed to allocate space for link head


From: Małowidzki , Marek
Subject: ODP: [lwip-devel] [bug #26135] Don'tneed to allocate space for link header since already in etharp_hdr.
Date: Thu, 9 Apr 2009 17:35:21 +0200

If I understand well, it is actually changed from
 
p = pbuf_alloc(PBUF_LINK, sizeof(struct etharp_hdr), PBUF_RAM);

to
 
p = pbuf_alloc(PBUF_RAW, sizeof(struct etharp_hdr), PBUF_RAM);
 
Marek 


________________________________

Od: address@hidden w imieniu Zhenwei Chu
Wysłano: Cz 2009-04-09 16:21
Do: Zhenwei Chu; address@hidden
Temat: [lwip-devel] [bug #26135] Don'tneed to allocate space for link header 
since already in etharp_hdr.




URL:
  <http://savannah.nongnu.org/bugs/?26135>

                 Summary: Don't need to allocate space for link header
since already in etharp_hdr.
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: blackfin
            Submitted on: Thu 09 Apr 2009 02:21:42 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: Change Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release:
            lwIP version: 1.3.0

    _______________________________________________________

Details:

Don't need to allocate space for link header since already in etharp_hdr.

changed
Etharp.c, line1029:
From:
etharp_raw()

  /* allocate a pbuf for the outgoing ARP request packet */
    /* don't need to allocate space for link header since already in
etharp_hdr */
    p = pbuf_alloc(PBUF_RAW, sizeof(struct etharp_hdr), PBUF_RAM);


To:
etharp_raw()

  /* allocate a pbuf for the outgoing ARP request packet */
               
  p = pbuf_alloc(PBUF_LINK, sizeof(struct etharp_hdr), PBUF_RAM);






    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?26135>

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



_______________________________________________
lwip-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-devel


<<winmail.dat>>


reply via email to

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