Author: cgutman
Date: Wed May 20 07:20:57 2009
New Revision: 41012
URL:
http://svn.reactos.org/svn/reactos?rev=41012&view=rev
Log:
- Implement NdisGetPoolFromPacket, NdisPacketSize, NdisGetPacketCancelId, and
NdisSetPacketCancelId
Modified:
trunk/reactos/drivers/network/ndis/ndis/buffer.c
Modified: trunk/reactos/drivers/network/ndis/ndis/buffer.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/buffer.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/buffer.c [iso-8859-1] Wed May 20 07:20:57
2009
@@ -1161,4 +1161,50 @@
*Status = NDIS_STATUS_SUCCESS;
}
+/*
+ * @implemented
+ */
+NDIS_HANDLE
+EXPORT
+NdisGetPoolFromPacket(
+ IN PNDIS_PACKET Packet)
+{
+ return Packet->Private.Pool;
+}
+
+/*
+ * @implemented
+ */
+UINT
+EXPORT
+NdisPacketSize(
+ IN UINT ProtocolReservedSize)
+{
+ return sizeof(NDIS_PACKET) + sizeof(NDIS_PACKET_OOB_DATA) +
+ sizeof(NDIS_PACKET_EXTENSION) + ProtocolReservedSize;
+}
+
+/*
+ * @implemented
+ */
+PVOID
+EXPORT
+NdisGetPacketCancelId(
+ IN PNDIS_PACKET Packet)
+{
+ return NDIS_GET_PACKET_CANCEL_ID(Packet);
+}
+
+/*
+ * @implemented
+ */
+VOID
+EXPORT
+NdisSetPacketCancelId(
+ IN PNDIS_PACKET Packet,
+ IN PVOID CancelId)
+{
+ NDIS_SET_PACKET_CANCEL_ID(Packet, CancelId);
+}
+
/* EOF */