[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] [lwip] Porting issues
From: |
Atanas Korchev |
Subject: |
[lwip-users] [lwip] Porting issues |
Date: |
Thu, 09 Jan 2003 02:17:41 -0000 |
Hi.
I recently started to port lwIP. My compiler cannot align nested structures at
even boundary. That of course means that assignment as
struct tcp_hdr* hdr = (struct tcp_hdr*)p->payload;
would not do their job at all. My first idea was to make some procedures like
ip_hdr_from_mem,ip_hdr_to_mem and fill structure elements. This technique
helped when porting IP and ICMP layers. But I really got stuck when I began
porting TCP. I used the same technique and it almost helped - connect and
receive works almost fine but transmit is no good. Can anyone think out a
workaround of my compiler limitation. (I'm sure that there isn't any hidden
option that turns this feature on:)
__________________________________
12MB-POP3-WAP-SMS---TOBA-E-mail.bG
----------------------------------
" Ako uckame u Bue agpec B mail.bg
ugeme myk: http://www.mail.bg/new/ "
[This message was sent through the lwip discussion list.]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-users] [lwip] Porting issues,
Atanas Korchev <=