How to get the offset in the chained NDIS packet buffer?
- From: "Liang Chen" <LiangChen@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 13 Jun 2005 00:10:01 -0700
Hi all,
I am a fledging in NDIS driver. Currently, I try to get the packet buffer
via the function
VOID
NdisGetFirstBufferFromPacket(
IN PNDIS_PACKET Packet,
OUT PNDIS_BUFFER *FirstBuffer,
OUT PVOID *FirstBufferVA,
OUT PUINT FirstBufferLength,
OUT PUINT TotalBufferLength
);
However, if the offset I want to get is out of the current buffer, for
example, the IP header, how can I get the pointer? Access FirstBufferVA[
sizeof( MAC_HEADER ) ] directly or go through the buffer list one by one?
And what should be considerated when I access virtual address and physical
address>
Many thanks!
-Liang
.
- Follow-Ups:
- Re: How to get the offset in the chained NDIS packet buffer?
- From: Maxim S. Shatskih
- Re: How to get the offset in the chained NDIS packet buffer?
- Prev by Date: Re: Does Bill Gates know about the DDK regarding C++?
- Next by Date: Re: NDIS-PCMCIA
- Previous by thread: Print Port monitor
- Next by thread: Re: How to get the offset in the chained NDIS packet buffer?
- Index(es):