NET_EXTENSION structure (extension.h)

The NET_EXTENSION structure represents a packet extension for all packets in a packet queue.

Syntax

typedef struct _NET_EXTENSION {
  void  *Reserved[4];
  union {
    BOOLEAN Enabled;
    void    *Reserved1;
  } DUMMYUNIONNAME;
} NET_EXTENSION;

Members

Reserved[4]

Reserved. Client drivers must not read or write to this value.

DUMMYUNIONNAME

A union that contains the Enabled and Reserved1 members.

DUMMYUNIONNAME.Enabled

A boolean value that indicates if this extension is currently enabled for the packets in this queue.

DUMMYUNIONNAME.Reserved1

Reserved. Client drivers must not read or write to this value.

Remarks

Client drivers typically store packet extensions in the context space for each queue during queue creation, reducing calls out of the driver. Later, to retrieve packet extension information for a particular packet, the driver calls one of the wrapper functions around NetExtensionGetData.

For examples of creating packet queues, see Transmit and receive queues.

Requirements

Requirement Value
Minimum KMDF version 1.29
Header extension.h

See also

Transmit and receive queues

NetExtensionGetPacketChecksum