"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/dynamic-preprocessors/appid/service_plugins/service_rshell.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.

service_rshell.c  (snort-2.9.16.1):service_rshell.c  (snort-2.9.17)
skipping to change at line 92 skipping to change at line 92
pp pp
}; };
static tAppRegistryEntry appIdRegistry[] = {{APP_ID_SHELL, APPINFO_FLAG_SERVICE_ ADDITIONAL}}; static tAppRegistryEntry appIdRegistry[] = {{APP_ID_SHELL, APPINFO_FLAG_SERVICE_ ADDITIONAL}};
static int16_t app_id = 0; static int16_t app_id = 0;
static int rshell_init(const InitServiceAPI * const init_api) static int rshell_init(const InitServiceAPI * const init_api)
{ {
unsigned i; unsigned i;
#ifdef TARGET_BASED
app_id = init_api->dpd->addProtocolReference("rsh-error"); app_id = init_api->dpd->addProtocolReference("rsh-error");
#endif
for (i=0; i < sizeof(appIdRegistry)/sizeof(*appIdRegistry); i++) for (i=0; i < sizeof(appIdRegistry)/sizeof(*appIdRegistry); i++)
{ {
_dpd.debugMsg(DEBUG_LOG,"registering appId: %d\n",appIdRegistry[i].appId ); _dpd.debugMsg(DEBUG_LOG,"registering appId: %d\n",appIdRegistry[i].appId );
init_api->RegisterAppId(&rshell_validate, appIdRegistry[i].appId, appIdR egistry[i].additionalInfo, init_api->pAppidConfig); init_api->RegisterAppId(&rshell_validate, appIdRegistry[i].appId, appIdR egistry[i].additionalInfo, init_api->pAppidConfig);
} }
return 0; return 0;
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

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