Re: Miniport NIC controller descriptor definition

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Stephan Wolf (stewo68_at_hotmail.com)
Date: 04/14/04

  • Next message: vipin aravind: "text driver"
    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.
    

  • Next message: vipin aravind: "text driver"

    Relevant Pages

    • Re: Data transfer(little/big endian)
      ... vipin wrote: ... > I am wondering when I would face big endian and little endian issues over ... > I guess the issue is not with the network itself but in the host computers. ... format floats. ...
      (microsoft.public.win32.programmer.networks)
    • Re: Socket C
      ... The "Hello" string was only to exemplify. ... my machine is little endian. ... network will be in network byte order. ... feasible to transmit data in native byte order; ...
      (comp.lang.c)
    • Re: Socket C
      ... my machine is little endian. ... network will be in network byte order. ... feasible to transmit data in native byte order; ... doesn't make sense char in big or little endian. ...
      (comp.lang.c)
    • Re: Socket C
      ... The "Hello" string was only to exemplify. ... my machine is little endian. ... Big/little endian doesn't affect chars. ... network will be in network byte order. ...
      (comp.lang.c)
    • Re: TitsandAsm
      ... systems are little endian might be a good reason to go big endian. ... enough for some interesting data structures to become meaningful, ... it's hard to have enough data in 64KB to make a search tree of some ... sort meaningful - for a few hundred nodes, ...
      (alt.lang.asm)