ADDRESSPAIR structure

The ADDRESSPAIR structure constructs a capture filter.

Syntax

typedef struct _ADDRESSPAIR {
  WORD    AddressFlags;
  WORD    NalReserved;
  ADDRESS DstAddress;
  ADDRESS SrcAddress;
} ADDRESSPAIR, *LPADDRESSPAIR;

Members

AddressFlags

Flags that describe the addresses used by a capture filter. See Remarks for more information.

Value Meaning
ADDRESS_FLAGS_MATCH_DST
Matches the destination address.
ADDRESS_FLAGS_MATCH_SRC
Matches the source address.
ADDRESS_FLAGS_EXCLUDED
Excludes the frame if this address is found.
ADDRESS_FLAGS_DST_GROUP_ADDR
Matches group bit only. Use this for broadcast-type messages.
ADDRESS_FLAGS_MATCH_BOTH
Matches destination and source addresses.

NalReserved

This is reserved.

DstAddress

Destination address of the address pair element.

SrcAddress

Source address of the address pair element.

Remarks

The flags of the AddressFlags member can be combined. For example the following setting excludes the frame if the specified source address is detected.

ADDRESS_FLAGS_MATCH_SOURCE|ADDRESS_FLAGS_EXCLUDED

For more information about implementing this structure, see Capture Filters.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Netmon.h

See also

CAPTUREFILTER