PKTMON_PACKET_HEADER_INFORMATION - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// pktmonnpik.h

typedef struct _PKTMON_PACKET_HEADER_INFORMATION {
  SOCKADDR_INET              SockAddrLocal;
  SOCKADDR_INET              SockAddrRemote;
  UCHAR                      IpProtocol;
  union {
    struct {
      USHORT PortLocal;
      USHORT PortRemote;
    } Udp;
    struct {
      USHORT PortLocal;
      USHORT PortRemote;
      UCHAR  Flags;
    } Tcp;
    struct {
      UCHAR Type;
      UCHAR Code;
    } Icmp;
  } Transport;
  _PKTMON_TRANSPORT_PROTOCOL _PKTMON_TRANSPORT_PROTOCOL;
} PKTMON_PACKET_HEADER_INFORMATION;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-pktmonnpik-pktmon_packet_header_information)

Description

The PKTMON_PACKET_HEADER_INFORMATION struct contains the packet header information.

Members

SockAddrLocal

The local socket address.

SockAddrRemote

The remote socket address.

IpProtocol

The IP protocol.

Transport

A union that defines the transport protocol.

Transport.Udp

The UDP protocol.

Transport.Udp.PortLocal

The local port for the UDP protocol.

Transport.Udp.PortRemote

The remote port for the UDP protocol.

Transport.Tcp

The TCP protocol.

Transport.Tcp.PortLocal

The local port for the TCP protocol.

Transport.Tcp.PortRemote

The remote port for the TCP protocol.

Transport.Tcp.Flags

Flags for the TCP protocol.

Transport.Icmp

The ICMP protocol.

Transport.Icmp.Type

The type for the ICMP protocol.

Transport.Icmp.Code

The code for the ICMP protocol.

Remarks

See also