Re: NDISUIO ReadFile Problems
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Thu, 23 Oct 2008 12:26:36 -0700
Isn't that field specified as a 16-bit field, though? If you stuffed it
assuming the byte order (MSB, then LSB?), you may not get what the other
hosts on the network are expecting. Byte order cetainly explains the
reversal of the bytes, as network byte order is the reverse of CE's layout.
It certainly could be some assumption that only Windows CE is making, but it
seems like the entire network stack on CE would be broken, if that were the
case.
Paul T.
<steve_mccarthy@xxxxxxxxxxx> wrote in message
news:c561ed4c-7de4-415a-bd25-f7a4167ac668@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I don't think the problem is related to something like structure value
= htons( packet type ). I built a packet to send "by hand" by putting
the mac addresses, ethernet type, and payload into a char buffer
manually. When I sent the data with WriteFile the ethenet type showed
up reveresed on the receiving side.
.
- References:
- NDISUIO ReadFile Problems
- From: steve_mccarthy
- Re: NDISUIO ReadFile Problems
- From: steve_mccarthy
- Re: NDISUIO ReadFile Problems
- From: Paul G. Tobey [eMVP]
- Re: NDISUIO ReadFile Problems
- From: steve_mccarthy
- NDISUIO ReadFile Problems
- Prev by Date: Re: NDISUIO ReadFile Problems
- Next by Date: Free WAV 2 MP3 encoder / PPC2003 / WM5 / WM6
- Previous by thread: Re: NDISUIO ReadFile Problems
- Next by thread: Confirm Issues regarding CLA and Embedded Development Tools
- Index(es):
Relevant Pages
|