"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/dynamic-preprocessors/appid/spp_appid.c" between
snort-2.9.16.1.tar.gz and snort-2.9.17.tar.gz

About: Snort is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.

spp_appid.c  (snort-2.9.16.1):spp_appid.c  (snort-2.9.17)
skipping to change at line 375 skipping to change at line 375
reloadUnlock(); reloadUnlock();
} }
void AppIdDumpStats(int exit_flag) void AppIdDumpStats(int exit_flag)
{ {
_dpd.logMsg("Application Identification Preprocessor:\n"); _dpd.logMsg("Application Identification Preprocessor:\n");
_dpd.logMsg(" Total packets received : %lu\n", app_id_raw_packet_count); _dpd.logMsg(" Total packets received : %lu\n", app_id_raw_packet_count);
_dpd.logMsg(" Total packets processed : %lu\n", app_id_processed_packet_cou nt); _dpd.logMsg(" Total packets processed : %lu\n", app_id_processed_packet_cou nt);
_dpd.logMsg(" Total packets ignored : %lu\n", app_id_ignored_packet_count ); _dpd.logMsg(" Total packets ignored : %lu\n", app_id_ignored_packet_count );
_dpd.logMsg(" Total ongoing AppId sessions : %lu\n", app_id_ongoing_sessi
on);
_dpd.logMsg(" Total AppId sessions allocated : %lu\n", app_id_total_alloc
);
_dpd.logMsg(" AppId session size : %lu\n", sizeof(tAppIdData));
if (exit_flag == 0) // Snort's SigDumpStatsHandler dumping stats intentio nally if (exit_flag == 0) // Snort's SigDumpStatsHandler dumping stats intentio nally
{ {
if (thirdparty_appid_module) if (thirdparty_appid_module)
thirdparty_appid_module->print_stats(); thirdparty_appid_module->print_stats();
AppIdServiceStateDumpStats(); AppIdServiceStateDumpStats();
RNAPndDumpLuaStats(); RNAPndDumpLuaStats();
#ifdef SIDE_CHANNEL #ifdef SIDE_CHANNEL
AppIdPrintSSStats(); AppIdPrintSSStats();
#endif #endif
} }
skipping to change at line 397 skipping to change at line 400
static void appIdIdleProcessing(void) static void appIdIdleProcessing(void)
{ {
appIdStatsIdleFlush(); appIdStatsIdleFlush();
} }
static void AppIdResetStats(int signal, void *data) static void AppIdResetStats(int signal, void *data)
{ {
app_id_raw_packet_count = 0; app_id_raw_packet_count = 0;
app_id_processed_packet_count = 0; app_id_processed_packet_count = 0;
app_id_ignored_packet_count = 0; app_id_ignored_packet_count = 0;
app_id_ongoing_session = 0;
app_id_total_alloc = 0;
if (thirdparty_appid_module) if (thirdparty_appid_module)
thirdparty_appid_module->reset_stats(); thirdparty_appid_module->reset_stats();
#ifdef SIDE_CHANNEL #ifdef SIDE_CHANNEL
AppIdResetSSStats(); AppIdResetSSStats();
#endif #endif
} }
static void AppIdCleanExit(int signal, void *unused) static void AppIdCleanExit(int signal, void *unused)
{ {
AppIdCommonFini(); AppIdCommonFini();
skipping to change at line 477 skipping to change at line 482
_dpd.registerGetAppId(getOpenAppId); _dpd.registerGetAppId(getOpenAppId);
if (!thirdparty_appid_module) if (!thirdparty_appid_module)
_dpd.streamAPI->register_http_header_callback(httpHeaderCallback); _dpd.streamAPI->register_http_header_callback(httpHeaderCallback);
_dpd.registerSslAppIdLookup(sslAppGroupIdLookup); _dpd.registerSslAppIdLookup(sslAppGroupIdLookup);
if (_dpd.streamAPI->service_event_subscribe(PP_SIP, SIP_EVENT_TYPE_SIP_D IALOG, SipSessionSnortCallback) == false) if (_dpd.streamAPI->service_event_subscribe(PP_SIP, SIP_EVENT_TYPE_SIP_D IALOG, SipSessionSnortCallback) == false)
DynamicPreprocessorFatalMessage("failed to subscribe to SIP_DIALOG\n "); DynamicPreprocessorFatalMessage("failed to subscribe to SIP_DIALOG\n ");
if (_dpd.streamAPI->service_event_subscribe(PP_CIP, CIP_EVENT_TYPE_CIP_D ATA, CipSessionSnortCallback) == false) if (_dpd.streamAPI->service_event_subscribe(PP_CIP, CIP_EVENT_TYPE_CIP_D ATA, CipSessionSnortCallback) == false)
DynamicPreprocessorFatalMessage("failed to subscribe to CIP_EVENT_TY PE_CIP_DATA\n"); DynamicPreprocessorFatalMessage("failed to subscribe to CIP_EVENT_TY PE_CIP_DATA\n");
_dpd.registerSetTlsHostAppId(setTlsHost);
appIdApiInit(_dpd.appIdApi); appIdApiInit(_dpd.appIdApi);
#ifdef SIDE_CHANNEL #ifdef SIDE_CHANNEL
_dpd.addFuncToPostConfigList(sc, AppIdSSPostConfigInit, NULL); _dpd.addFuncToPostConfigList(sc, AppIdSSPostConfigInit, NULL);
#endif #endif
once = 1; once = 1;
} }
_dpd.addPreprocConfCheck(sc, AppIDCheckConfig); _dpd.addPreprocConfCheck(sc, AppIDCheckConfig);
if (policy_id == _dpd.getDefaultPolicy()) if (policy_id == _dpd.getDefaultPolicy())
 End of changes. 3 change blocks. 
0 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)