locked
Why should classifyOut be null in classifyFn? RRS feed

  • Question

  • Hi, forum.

    I run across a weird problem:

    My classifyFn to filter FWPM_LAYER_ALE_CONNECT_REDIRECT_V4 should receive a null classifyOut, which is marked as OUT and not OPTIONAL.

    Why?

    Thanks.
    Tuesday, January 15, 2013 12:49 PM

Answers

  • I have never seen the classifyOut passed to the classifyFn as NULL.  Can you share the prototype for your classifyFn?

    Make sure you are using the correct classifyFn prototype

    i.e.

    _IRQL_requires_min_(PASSIVE_LEVEL)
    _IRQL_requires_max_(DISPATCH_LEVEL)
    _IRQL_requires_same_
    VOID ClassifyProxyByALERedirect(_In_ const FWPS_INCOMING_VALUES* pClassifyValues,
                                    _In_ const FWPS_INCOMING_METADATA_VALUES* pMetadata,
                                    _Inout_opt_ VOID* pLayerData,
                                    _In_opt_ const VOID* pClassifyContext,
                                    _In_ const FWPS_FILTER* pFilter,
                                    _In_ UINT64 flowContext,
                                    _Inout_ FWPS_CLASSIFY_OUT* pClassifyOut)

    Thanks,


    Dusty Harper [MSFT]
    Microsoft Corporation
    ------------------------------------------------------------
    This posting is provided "AS IS", with NO warranties and confers NO rights
    ------------------------------------------------------------

    Tuesday, January 15, 2013 8:17 PM
    Moderator

All replies

  • I have never seen the classifyOut passed to the classifyFn as NULL.  Can you share the prototype for your classifyFn?

    Make sure you are using the correct classifyFn prototype

    i.e.

    _IRQL_requires_min_(PASSIVE_LEVEL)
    _IRQL_requires_max_(DISPATCH_LEVEL)
    _IRQL_requires_same_
    VOID ClassifyProxyByALERedirect(_In_ const FWPS_INCOMING_VALUES* pClassifyValues,
                                    _In_ const FWPS_INCOMING_METADATA_VALUES* pMetadata,
                                    _Inout_opt_ VOID* pLayerData,
                                    _In_opt_ const VOID* pClassifyContext,
                                    _In_ const FWPS_FILTER* pFilter,
                                    _In_ UINT64 flowContext,
                                    _Inout_ FWPS_CLASSIFY_OUT* pClassifyOut)

    Thanks,


    Dusty Harper [MSFT]
    Microsoft Corporation
    ------------------------------------------------------------
    This posting is provided "AS IS", with NO warranties and confers NO rights
    ------------------------------------------------------------

    Tuesday, January 15, 2013 8:17 PM
    Moderator
  • Thanks. I indeed misused the prototype.
    Wednesday, January 16, 2013 4:18 AM