mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:25:43 +00:00
- Add NdisCopyLookaheadData macro.
svn path=/trunk/; revision=11642
This commit is contained in:
parent
0c3b663f9c
commit
d0917c6faf
1 changed files with 30 additions and 0 deletions
|
@ -1597,6 +1597,36 @@ NdisCopyFromPacketToPacket(
|
|||
IN UINT SourceOffset,
|
||||
OUT PUINT BytesCopied);
|
||||
|
||||
/*
|
||||
* VOID
|
||||
* NdisCopyLookaheadData(
|
||||
* IN PVOID Destination,
|
||||
* IN PVOID Source,
|
||||
* IN ULONG Length,
|
||||
* IN ULONG ReceiveFlags);
|
||||
*/
|
||||
|
||||
#ifdef _M_IX86
|
||||
#define NdisCopyLookaheadData(Destination, Source, Length, MacOptions) \
|
||||
RtlCopyMemory(Destination, Source, Length)
|
||||
#else
|
||||
#define NdisCopyLookaheadData(Destination, Source, Length, MacOptions) \
|
||||
{ \
|
||||
if ((MacOptions) & NDIS_MAC_OPTION_COPY_LOOKAHEAD_DATA) \
|
||||
{ \
|
||||
RtlCopyMemory(_Destination, _Source, _Length); \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
PUCHAR _Src = (PUCHAR)(Source); \
|
||||
PUCHAR _Dest = (PUCHAR)(Destination); \
|
||||
PUCHAR _End = _Dest + (Length); \
|
||||
while (_Dest < _End) \
|
||||
*_Dest++ = *_Src++; \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
|
||||
NDISAPI
|
||||
VOID
|
||||
DDKAPI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue