[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Re: [lwip] Re: lwIP on DSPs
From: |
leon . woestenberg |
Subject: |
[lwip-users] Re: [lwip] Re: lwIP on DSPs |
Date: |
Thu, 09 Jan 2003 01:15:36 -0000 |
Hello all,
in response to Bill Knight; my stack indeed uses macro's (#define's) that
pack and unpack bytes into/out of 16-bit words.
The reason was a hardware legacy, some hardware design of ours did not have
individual byte accesses enabled,
and acted on 16-bit words. In fact, I'm planning to remove these #define's
as we need to redesign the hardware anyway.
Regards,
Leon Woestenberg
Axon Digital Design
Phone: +31 13 511 6666
Fax: +31 13 511 4151
web: www.axon.tv
=====================================================================================================
The information contained in this communication is confidential and is
intended solely for the use of the individual or entity to whom it is
addressed. Axon Digital Design Group is neither liable for the proper nor
for the complete transmission of the information contained in this
communication nor for any delay in its receipt. Axon Digital Design Group
does not guarantee that the integrity of this communication has been
maintained nor that the communication is free of viruses, interceptions or
interference. If you are not the intended recipient of this communication,
you are hereby notified that reading, disseminating, distributing or
copying this message is strictly prohibited. In that case please return the
communication to the sender and delete and destroy all copies. In carrying
out its engagements, Axon Digital Design Group applies general terms and
conditions, which contain a clause that limits its liability. A copy of
these terms and conditions is available on request free of charge.
=====================================================================================================
"Bill Knight"
<address@hidden To: "address@hidden"
<address@hidden>
m> cc:
Sent by: Subject: Re: [lwip] Re: lwIP on
DSPs
address@hidden
s.se
03-12-01 20:53
Please respond
to lwip
#define TCPH_SRC(hdr) (hdr)->src
#define TCPH_DEST(hdr) (hdr)->dest
#define TCPH_OFFSET(hdr) (ntohs((hdr)->offset_flags) >> 8)
#define TCPH_FLAGS(hdr) (ntohs((hdr)->offset_flags) & 0xff)
#define /* etc.*/
For a DSP with 32-bit chars, the equivalent (but a lot trickier) struct and
#defines could be done. This way, the actual protocol code wouldn't have to
be changed in any way. A single #define in arch/cpu.h or arch/cc.h would
change they way the protocol headers are defined.
Leon, your DHCP and ARP code used #defines in this way to extract header
field values, perhaps you can comment on the above. Does your entire stack
work this way? Were there any particular reson for doing it that way or for
doing it the struct way (such as lwIP)?
In any case, this is a good thing to put into lwIP 0.6.
/adam
[This message was sent through the lwip discussion list.]
[This message was sent through the lwip discussion list.]
- [lwip-users] Re: [lwip] Re: lwIP on DSPs, Adam Dunkels, 2003/01/08
- [lwip-users] Re: [lwip] Re: lwIP on DSPs, Bill Knight, 2003/01/08
- [lwip-users] Re: [lwip] Re: lwIP on DSPs, Adam Dunkels, 2003/01/08
- [lwip-users] Re: [lwip] Re: lwIP on DSPs, Bill Knight, 2003/01/08
- [lwip-users] Re: [lwip] Re: lwIP on DSPs, Adam Dunkels, 2003/01/09
- [lwip-users] Re: [lwip] Re: lwIP on DSPs, Adam Dunkels, 2003/01/09
- [lwip-users] Re: [lwip] Re: lwIP on DSPs, Adam Dunkels, 2003/01/09
- [lwip-users] Re: [lwip] Re: lwIP on DSPs,
leon . woestenberg <=
- [lwip-users] Re: [lwip] Re: lwIP on DSPs, Bill Knight, 2003/01/09