FWPS_TRANSPORT_SEND_PARAMS0 (Compact 2013)

3/26/2014

This structure defines properties of an outgoing transport layer packet.

Syntax

typedef struct FWPS_TRANSPORT_SEND_PARAMS0_ {
  UCHAR  *remoteAddress;
  SCOPE_ID  remoteScopeId;
  WSACMSGHDR  *controlData  OPTIONAL;
  ULONG  controlDataLength  OPTIONAL;
} FWPS_TRANSPORT_SEND_PARAMS0;

Members

  • remoteAddress
    A pointer to a buffer that specifies the remote IP address to send the socket. The remote address specified by this member can differ from the one passed as an incoming data value to the callout's classifyFn callout function.

    The buffer can contain an IPv4 address (4 bytes) or an IPv6 address (16 bytes), and the address must be specified in network byte order.

  • remoteScopeId
    A SCOPE_ID structure that contains the scope identifier for the remote IP address. The scope identifier is provided to a callout through the remoteScopeId member of the FWPS_INCOMING_METADATA_VALUES0 structure that is passed to the callout's classifyFn callout function. The SCOPE_ID structure is defined in Ws2ipdef.h as follows:

    typedef struct {
      union {
        struct {
          ULONG  Zone : 28;
          ULONG  Level : 4;
        };
        ULONG  Value;
      };
    } SCOPE_ID, *PSCOPE_ID;
    
  • controlData
    An optional pointer to a buffer that contains socket control data specified by the WSASendMsg function.

    If present, socket control data is provided to a callout with the controlData member of the FWPS_INCOMING_METADATA_VALUES0 structure that is passed to the callout's classifyFn callout function.

    If socket control data is not NULL, it must be deep-copied in the callout's implementation of the classifyFn function and the controlData buffer must be kept valid until the injection completion function is called.

  • controlDataLength
    The length, in bytes, of the controlData member.

Remarks

None

Requirements

Header

fwpsk.h

See Also

Reference

WFP Callout Driver Structures
classifyFn
FWPS_INCOMING_METADATA_VALUES0
WFP Callout Driver Reference