當前位置: 首頁>>代碼示例>>C++>>正文


C++ FlowGetProtoMapping函數代碼示例

本文整理匯總了C++中FlowGetProtoMapping函數的典型用法代碼示例。如果您正苦於以下問題:C++ FlowGetProtoMapping函數的具體用法?C++ FlowGetProtoMapping怎麽用?C++ FlowGetProtoMapping使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了FlowGetProtoMapping函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: AppLayerParserProtocolHasLogger

int AppLayerParserProtocolHasLogger(uint8_t ipproto, AppProto alproto)
{
    SCEnter();
    int ipproto_map = FlowGetProtoMapping(ipproto);
    int r = (alp_ctx.ctxs[ipproto_map][alproto].logger == 0) ? 0 : 1;
    SCReturnInt(r);
}
開發者ID:decanio,項目名稱:suricata-np,代碼行數:7,代碼來源:app-layer-parser.c

示例2: SCEnter

FileContainer *AppLayerParserGetFiles(uint8_t ipproto, AppProto alproto,
                           void *alstate, uint8_t direction)
{
    SCEnter();

    FileContainer *ptr = NULL;

    if (alp_ctx.ctxs[FlowGetProtoMapping(ipproto)][alproto].
        StateGetFiles != NULL)
    {
        ptr = alp_ctx.ctxs[FlowGetProtoMapping(ipproto)][alproto].
            StateGetFiles(alstate, direction);
    }

    SCReturnPtr(ptr, "FileContainer *");
}
開發者ID:denji,項目名稱:suricata,代碼行數:16,代碼來源:app-layer-parser.c

示例3: AppLayerParserProtocolSupportsTxs

int AppLayerParserProtocolSupportsTxs(uint8_t ipproto, AppProto alproto)
{
    SCEnter();
    int ipproto_map = FlowGetProtoMapping(ipproto);
    int r = (alp_ctx.ctxs[ipproto_map][alproto].StateTransactionFree == NULL) ? 0 : 1;
    SCReturnInt(r);
}
開發者ID:decanio,項目名稱:suricata-np,代碼行數:7,代碼來源:app-layer-parser.c

示例4: AppLayerParserProtocolIsTxEventAware

int AppLayerParserProtocolIsTxEventAware(uint8_t ipproto, AppProto alproto)
{
    SCEnter();
    int ipproto_map = FlowGetProtoMapping(ipproto);
    int r = (alp_ctx.ctxs[ipproto_map][alproto].StateGetEvents == NULL) ? 0 : 1;
    SCReturnInt(r);
}
開發者ID:decanio,項目名稱:suricata-np,代碼行數:7,代碼來源:app-layer-parser.c

示例5: AppLayerParserGetStateProgressCompletionStatus

int AppLayerParserGetStateProgressCompletionStatus(uint8_t ipproto, AppProto alproto,
                                        uint8_t direction)
{
    SCEnter();
    SCReturnInt(alp_ctx.ctxs[FlowGetProtoMapping(ipproto)][alproto].
                StateGetProgressCompletionStatus(direction));
}
開發者ID:denji,項目名稱:suricata,代碼行數:7,代碼來源:app-layer-parser.c

示例6: AppLayerParserSetStreamDepth

void AppLayerParserSetStreamDepth(uint8_t ipproto, AppProto alproto, uint32_t stream_depth)
{
    SCEnter();

    alp_ctx.ctxs[FlowGetProtoMapping(ipproto)][alproto].stream_depth = stream_depth;

    SCReturn;
}
開發者ID:jviiret,項目名稱:suricata,代碼行數:8,代碼來源:app-layer-parser.c

示例7: AppLayerParserGetTxCnt

uint64_t AppLayerParserGetTxCnt(uint8_t ipproto, AppProto alproto, void *alstate)
{
    SCEnter();
    uint64_t r = 0;
    r = alp_ctx.ctxs[FlowGetProtoMapping(ipproto)][alproto].
               StateGetTxCnt(alstate);
    SCReturnCT(r, "uint64_t");
}
開發者ID:jviiret,項目名稱:suricata,代碼行數:8,代碼來源:app-layer-parser.c

示例8: AppLayerParserRegisterProtocolUnittests

void AppLayerParserRegisterProtocolUnittests(uint8_t ipproto, AppProto alproto,
                                  void (*RegisterUnittests)(void))
{
    SCEnter();
    alp_ctx.ctxs[FlowGetProtoMapping(ipproto)][alproto].
        RegisterUnittests = RegisterUnittests;
    SCReturn;
}
開發者ID:jack-flemming,項目名稱:suricata,代碼行數:8,代碼來源:app-layer-parser.c

示例9: AppLayerParserGetFirstDataDir

uint8_t AppLayerParserGetFirstDataDir(uint8_t ipproto, AppProto alproto)
{
    SCEnter();
    uint8_t r = 0;
    r = alp_ctx.ctxs[FlowGetProtoMapping(ipproto)][alproto].
               first_data_dir;
    SCReturnCT(r, "uint8_t");
}
開發者ID:jviiret,項目名稱:suricata,代碼行數:8,代碼來源:app-layer-parser.c

示例10: SCEnter

void *AppLayerParserGetTx(uint8_t ipproto, AppProto alproto, void *alstate, uint64_t tx_id)
{
    SCEnter();
    void * r = NULL;
    r = alp_ctx.ctxs[FlowGetProtoMapping(ipproto)][alproto].
                StateGetTx(alstate, tx_id);
    SCReturnPtr(r, "void *");
}
開發者ID:jviiret,項目名稱:suricata,代碼行數:8,代碼來源:app-layer-parser.c

示例11: AppLayerParserRegisterLogger

void AppLayerParserRegisterLogger(uint8_t ipproto, AppProto alproto)
{
    SCEnter();

    alp_ctx.ctxs[FlowGetProtoMapping(ipproto)][alproto].logger = TRUE;

    SCReturn;
}
開發者ID:jack-flemming,項目名稱:suricata,代碼行數:8,代碼來源:app-layer-parser.c

示例12: AppLayerParserGetStateProgress

int AppLayerParserGetStateProgress(uint8_t ipproto, AppProto alproto,
                        void *alstate, uint8_t direction)
{
    SCEnter();
    int r = 0;
    r = alp_ctx.ctxs[FlowGetProtoMapping(ipproto)][alproto].
                StateGetProgress(alstate, direction);
    SCReturnInt(r);
}
開發者ID:ken-tilera,項目名稱:suricata,代碼行數:9,代碼來源:app-layer-parser.c

示例13: AppLayerParserRegisterTruncateFunc

void AppLayerParserRegisterTruncateFunc(uint8_t ipproto, AppProto alproto,
                                        void (*Truncate)(void *, uint8_t))
{
    SCEnter();

    alp_ctx.ctxs[FlowGetProtoMapping(ipproto)][alproto].Truncate = Truncate;

    SCReturn;
}
開發者ID:jack-flemming,項目名稱:suricata,代碼行數:9,代碼來源:app-layer-parser.c

示例14: AppLayerParserGetEventInfo

int AppLayerParserGetEventInfo(uint8_t ipproto, AppProto alproto, const char *event_name,
                    int *event_id, AppLayerEventType *event_type)
{
    SCEnter();
    int ipproto_map = FlowGetProtoMapping(ipproto);
    int r = (alp_ctx.ctxs[ipproto_map][alproto].StateGetEventInfo == NULL) ?
                -1 : alp_ctx.ctxs[ipproto_map][alproto].StateGetEventInfo(event_name, event_id, event_type);
    SCReturnInt(r);
}
開發者ID:jack-flemming,項目名稱:suricata,代碼行數:9,代碼來源:app-layer-parser.c

示例15: AppLayerParserRegisterHasEventsFunc

void AppLayerParserRegisterHasEventsFunc(uint8_t ipproto, AppProto alproto,
                              int (*StateHasEvents)(void *))
{
    SCEnter();

    alp_ctx.ctxs[FlowGetProtoMapping(ipproto)][alproto].StateHasEvents =
        StateHasEvents;

    SCReturn;
}
開發者ID:jack-flemming,項目名稱:suricata,代碼行數:10,代碼來源:app-layer-parser.c


注:本文中的FlowGetProtoMapping函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。