Share via


SetInterfaceReceiveType callback function

The routing protocol calls the SetInterfaceReceiveType function to set the receive capability of the specified interface.

Syntax

DWORD WINAPI SetInterfaceReceiveType(
  _In_ DWORD ProtocolId,
  _In_ DWORD InterfaceIndex,
  _In_ DWORD InterfaceReceiveType,
  _In_ BOOL  bActivate
);

Parameters

  • ProtocolId [in]
    Specifies the identifier of the routing protocol that makes the call.

  • InterfaceIndex [in]
    Specifies the index of the interface on which to set the receive type.

  • InterfaceReceiveType [in]
    Specifies the receive type. This parameter must be one of the following values.

    IR_PROMISCUOUS

    IR_PROMISCUOUS_MULTICAST

  • bActivate [in]
    Specifies whether to activate the interface.

Return value

If the function succeeds, the return value is NO_ERROR.

If the function fails, the return value is one of the following error codes.

Value Meaning
ERROR_INVALID_PARAMETER

The value specified by the dwInterfaceReceiveType parameter is not valid.

Other

The call failed. Use FormatMessage to retrieve the error message that corresponds to the returned error code.

 

 

Requirements

Minimum supported client

None supported

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Routprot.h

See also

Protocol Identifiers