void IPPairBitInitCtx(void) { ippair_bit_id = IPPairStorageRegister("bit", sizeof(void *), NULL, XBitFreeAll); if (ippair_bit_id == -1) { SCLogError(SC_ERR_IPPAIR_INIT, "Can't initiate ippair storage for bits"); exit(EXIT_FAILURE); } }
void AppLayerExpectationSetup(void) { g_expectation_id = IPPairStorageRegister("expectation", sizeof(void *), NULL, ExpectationListFree); g_expectation_data_id = FlowStorageRegister("expectation", sizeof(void *), NULL, ExpectationDataFree); SC_ATOMIC_INIT(expectation_count); }