Re: Miniport NIC controller descriptor definition
From: Stephan Wolf (stewo68_at_hotmail.com)
Date: 04/14/04
- Previous message: Calvin Guan: "Re: File Creation in kernel driver"
- In reply to: PL: "Miniport NIC controller descriptor definition"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 14 Apr 2004 22:22:51 +0200
Windows is always little endian. Most network chips can be set to
adapt their data structures (descriptors etc.) to little or big endian
systems. If your chip does not support that then you need to convert
little to big endian and vice versa yourself.
This is not an unusal thing for Windows network programmers as all the
network packet formats (TCP etc.) are always big endian (except for
some braindead ones). TCP/IP offers the hton() and ntoh() macros for
this purpose (host-to-network, network-to-host), which are just no-ops
on big endian systems.
Stephan
--- On 14 Apr 2004 03:38:33 -0700, pinann2003@yahoo.com (PL) wrote: >Hi! >I am in the middle of descriptor definition for Tulip based NIC card. >In the famous e100bex sample there is no Big/Little endian problem. >I think that in my driver such a problem does exist. So what data has to be swapped? >PL.
- Previous message: Calvin Guan: "Re: File Creation in kernel driver"
- In reply to: PL: "Miniport NIC controller descriptor definition"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|