"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/dynamic-preprocessors/appid/service_plugins/service_rexec.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_rexec.c  (snort-2.9.16.1):service_rexec.c  (snort-2.9.17)
skipping to change at line 92 skipping to change at line 92
pp pp
}; };
static tAppRegistryEntry appIdRegistry[] = {{APP_ID_EXEC, APPINFO_FLAG_SERVICE_A DDITIONAL}}; static tAppRegistryEntry appIdRegistry[] = {{APP_ID_EXEC, APPINFO_FLAG_SERVICE_A DDITIONAL}};
static int16_t app_id = 0; static int16_t app_id = 0;
static int rexec_init(const InitServiceAPI * const init_api) static int rexec_init(const InitServiceAPI * const init_api)
{ {
unsigned i; unsigned i;
#ifdef TARGET_BASED
app_id = init_api->dpd->addProtocolReference("rexec"); app_id = init_api->dpd->addProtocolReference("rexec");
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(&rexec_validate, appIdRegistry[i].appId, appIdRe gistry[i].additionalInfo, init_api->pAppidConfig); init_api->RegisterAppId(&rexec_validate, appIdRegistry[i].appId, appIdRe gistry[i].additionalInfo, init_api->pAppidConfig);
} }
#endif
return 0; return 0;
} }
static void rexec_free_state(void *data) static void rexec_free_state(void *data)
{ {
ServiceREXECData *rd = (ServiceREXECData *)data; ServiceREXECData *rd = (ServiceREXECData *)data;
if (rd) if (rd)
{ {
 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)