Platform SDK: Quality of Service

IP_PATTERN

The IP_PATTERN structure applies a specific pattern or corresponding mask for the IP protocol. The IP_PATTERN structure designation is used by the traffic control interface in the application of packet filters.

typedef struct _IP_PATTERN {

    ULONG   Reserved1;
    ULONG   Reserved2;

    ULONG   SrcAddr;
    ULONG   DstAddr;

    union {
        struct { USHORT s_srcport,s_dstport; } S_un_ports;
        struct { UCHAR s_type,s_code; USHORT filler; } S_un_icmp;
        ULONG  S_Spi;
    } S_un;

    UCHAR   ProtocolId;
    UCHAR   Reserved3[3];

#define tcSrcPort         S_un.S_un_ports.s_srcport
#define tcDstPort         S_un.S_un_ports.s_dstport
#define tcIcmpType        S_un.S_un_icmp.s_type
#define tcIcmpCode        S_un.S_un_icmp.s_code
#define tcSpi             S_un.S_Spi

} IP_PATTERN, *PIP_PATTERN;

Members

Reserved1
Reserved for future use.
Reserved2
Reserved for future use.
SrcAddr
Source address.
DstAddr
Destination address.
ProtocolId
Protocol identifier.
Reserved3
Reserved for future use.
tcSrcPort
Source port.
tcDstPort
Destination port.
tcIcmpType
ICMP message type
tcIcmpCode
ICMP message code.
tcSpi
Service provider interface.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in Traffic.h.