[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #5846] struct sockaddr_in has different alignment th
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [patch #5846] struct sockaddr_in has different alignment than struct sockaddr |
Date: |
Tue, 03 Apr 2007 13:48:16 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 |
Follow-up Comment #2, patch #5846 (project lwip):
It's the whole struct which is unaligned. Casting a pointer from sockaddr_in
to sockaddr leads to a warning. In Linux, it's the way we have it, but in my
opinion, this would also lead to a warning, wouldn't it?
Using packed is not that good, I think: The struct is accessed byte by byte
(using GCC) although that's not necessary, because sockaddr is only used to
pass over sockaddr_in structs in lwIP. In other words, I think if the one is
packed, the other should be packed, also.
I know what I submitted does not look nice and I'm open to any other
solution, as long as I get rid of the warning!
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?5846>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [lwip-devel] [patch #5846] struct sockaddr_in has different alignment than struct sockaddr, Simon Goldschmidt, 2007/04/02
- [lwip-devel] [patch #5846] struct sockaddr_in has different alignment than struct sockaddr, Kieran Mansley, 2007/04/03
- [lwip-devel] [patch #5846] struct sockaddr_in has different alignment than struct sockaddr,
Simon Goldschmidt <=
- [lwip-devel] [patch #5846] struct sockaddr_in has different alignment than struct sockaddr, Jonathan Larmour, 2007/04/05
- [lwip-devel] [patch #5846] struct sockaddr_in has different alignment than struct sockaddr, Simon Goldschmidt, 2007/04/06
- [lwip-devel] [patch #5846] struct sockaddr_in has different alignment than struct sockaddr, Jonathan Larmour, 2007/04/06
- [lwip-devel] [patch #5846] struct sockaddr_in has different alignment than struct sockaddr, Simon Goldschmidt, 2007/04/07
- [lwip-devel] [patch #5846] struct sockaddr_in has different alignment than struct sockaddr, Jonathan Larmour, 2007/04/07
- [lwip-devel] [patch #5846] struct sockaddr_in has different alignment than struct sockaddr, Simon Goldschmidt, 2007/04/11