IP_PATTERN structure (traffic.h)
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.
Syntax
typedef struct _IP_PATTERN {
ULONG Reserved1;
ULONG Reserved2;
ULONG SrcAddr;
ULONG DstAddr;
union {
struct {
USHORT s_srcport;
USHORT s_dstport;
} S_un_ports;
struct {
UCHAR s_type;
UCHAR s_code;
USHORT filler;
} S_un_icmp;
ULONG S_Spi;
} S_un;
UCHAR ProtocolId;
UCHAR Reserved3[3];
} IP_PATTERN, *PIP_PATTERN;
Members
Reserved1
Reserved for future use.
Reserved2
Reserved for future use.
SrcAddr
Source address.
DstAddr
Destination address.
S_un
S_un.S_un_ports
S_un_ports.s_srcport,s_dstport
Source port and destination port.
S_un.S_un_ports.s_srcport
S_un.S_un_ports.s_dstport
S_un.S_un_icmp
S_un_icmp.s_type,s_code
ICMP message type and ICMP message code.
S_un.S_un_icmp.s_type
S_un.S_un_icmp.s_code
S_un.S_un_icmp.filler
S_un.S_Spi
Service provider interface.
ProtocolId
Protocol identifier.
Reserved3[3]
Reserved for future use.
Remarks
The following macros are defined in Traffic.h to make it easier to reference the members of the union:
#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
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Header | traffic.h |