// 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 referenceNo description available.
The PKTMON_PACKET_HEADER_INFORMATION struct contains the packet header information.
SockAddrLocalThe local socket address.
SockAddrRemoteThe remote socket address.
IpProtocolThe IP protocol.
TransportA union that defines the transport protocol.
Transport.UdpThe UDP protocol.
Transport.Udp.PortLocalThe local port for the UDP protocol.
Transport.Udp.PortRemoteThe remote port for the UDP protocol.
Transport.TcpThe TCP protocol.
Transport.Tcp.PortLocalThe local port for the TCP protocol.
Transport.Tcp.PortRemoteThe remote port for the TCP protocol.
Transport.Tcp.FlagsFlags for the TCP protocol.
Transport.IcmpThe ICMP protocol.
Transport.Icmp.TypeThe type for the ICMP protocol.
Transport.Icmp.CodeThe code for the ICMP protocol.