Re: NDIS ntohs/htons
The data of the MAC header and packet payload in the egress packet is in
network byte order.
"Gammaraman" <Gammaraman@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:20EE665F-6471-4894-8251-6C0A64F2C431@xxxxxxxxxxxxxxxx
Hi,
I am trying to inspect the Ethertype/length field in the Ethernet header
of
an egress NDIS packet handed to the miniport by a protocol driver. What
byte-order does NDIS use for the header and payload? Do I need to put the
Ethertype/length value through a call to ntohs() or htons() or just use
the
value as is?
I am assuming for an ingress NDIS packet, the byte order is network byte
order so I would need to use ntohs() to inpect a short. Is this correct?
Thanks.
.
Relevant Pages
- Re: Bad RX packet during BIN download
... Bad RX packet [Header: 0xED ... I have tried all differnet network cabling, and a different carrier board for my processor board. ... I am using a Compulab CM-iGLX board based on AMD's Geode LXD800 CPU. ... (microsoft.public.windowsce.platbuilder) - alt.2600 FAQ Revision .014 (2/4)
... One type of firewall is the packet filtering firewall. ... Dropping packets instead of rejecting them greatly increases the time required to scan your network. ... Port scanning UDP ports is much slower than port scanning TCP ports. ... Chartreuse Use the electricity from your phone line Cheese Connect two phones to create a diverter Chrome Manipulate Traffic Signals by Remote Control ... (alt.2600) - RE: Transfer a sending packet to upper TCP/IP protocol layer in IM
... If the IPv6 address can be resolved, ... IPv4 header will be larger than the MTU. ... After prepending IPv4 header and UDP header to the original IPv6 packet, ... (microsoft.public.development.device.drivers) - Re: sendfile(2) SF_NOPUSH flag proposal
... limiting factor to be PCI bus bandwidth first, memory second, ... > in separate packet nevertheless the size of header and of the file. ... So when a retransmit, if any, is necessary, the packet stream ... (freebsd-arch) - RE: Transfer a sending packet to upper TCP/IP protocol layer in IM
... The original MAC header is INVALID because my IM driver will assign a new ... After prepending IPv4 header and UDP header to the original IPv6 packet, ... (microsoft.public.development.device.drivers) |
|