Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Note NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.
NDIS_GET_PACKET_PROTOCOL_TYPE returns the protocol ID associated with a given packet descriptor.
Syntax
UINT NDIS_GET_PACKET_PROTOCOL_TYPE(
_In_ PNDIS_PACKET Packet
);
Parameters
- Packet [in]
Pointer to a packet descriptor.
Return value
NDIS_GET_PACKET_PROTOCOL_TYPE returns the protocol ID associated with a given packet descriptor as one of the following values:
| Return code | Description |
|---|---|
| NDIS_PROTOCOL_ID_DEFAULT | Unspecified |
| NDIS_PROTOCOL_ID_TCP_IP | TCP/IP |
| NDIS_PROTOCOL_ID_IPX | IPX |
| NDIS_PROTOCOL_ID_NBF | NetBEUI |
Remarks
Drivers can test the Protocol ID associated with a packet descriptor to determine whether to perform an operation on a packet. For example, before passing a TCP/IP checksum operation to its NIC, a miniport driver could test the Protocol ID associated with a packet descriptor. If the Protocol ID is not NDIS_PROTOCOL_ID_TCP_IP, the miniport driver's NIC should not perform checksum operations on the associated packet.
Requirements
Target platform |
Desktop |
Header |
Ndis.h (include Ndis.h) |
IRQL |
<= DISPATCH_LEVEL |
See also