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 |