// pktmonclntk.h
VOID PktMonClntNblDrop(
PKTMON_COMPONENT_CONTEXT *CompContext,
PNET_BUFFER_LIST NetBufferList,
PKTMON_PACKET_TYPE PacketType,
PKTMON_PACKET_HEADER_INFORMATION *PacketHeaderInformation,
BOOLEAN UseOnlyFirstNbl,
PKTMON_DIRECTION Direction,
INT DropReason,
INT LocationCode
);
View the official Windows Driver Kit DDI referenceNo description available.
The PktMonClntNblDrop function logs that a network packet was dropped. Additional information can be provided about why and where it got dropped.
CompContextPointer to PKTMON_COMPONENT_CONTEXT which holds the context for the component.
NetBufferListPointer to the NET_BUFFER_LIST structure.
PacketTypeThe type of packet being logged. This must be one of the values defined in the PKTMON_PACKET_TYPE enumeration.
PacketHeaderInformationPointer to the PKTMON_PACKET_HEADER_INFORMATION structure containing the packet header information. Can be NULL.
UseOnlyFirstNblWhen TRUE, indicates that only the first NBL in NetBufferList was dropped. Otherwise, all NBLs were dropped.
DirectionIndicates the packet direction. Each component reports packets in two directions only, IN or OUT. Must be one of the values from the PKTMON_DIRECTION enumeration.
DropReasonInteger that indicates the reason for the packet to be dropped.
| Value | Usage |
|---|---|
| 0 - 0x7FFFFFFF | Reserved for Microsoft. |
| 0x80000000 - 0xFFFFFFFF | Free to be used. |
LocationCodeInteger that indicates the location where the packet got dropped.
| Value | Usage |
|---|---|
| 0 - 0x7FFFFFFF | Free to be used. |
| 0x80000000 - 0xFFFFFFFF | Reserved for Microsoft. |