lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t)


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t)
Date: Fri, 29 Jan 2010 14:12:31 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2) Gecko/20100115 Firefox/3.6

Follow-up Comment #8, bug #27352 (project lwip):

> When I looked into this, I noticed that all references to an 
> ip_addr within a payload are within a packet

Well, that's the point: without special optimization, all these addresses are
16-bit aligned because of the 14-byte ethernet header. And on some platforms
where the DMA of the MAC can only transfer to/from 32-bit aligned memory, this
means to get these addresses aligned we would have to issue a memcpy/memmove.

For the tx side, this is no problem though, since we only copy the address
(into a packed struct). But we cannot just pass around a received address.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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