"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/dynamic-preprocessors/appid/service_plugins/service_ftp.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_ftp.c  (snort-2.9.16.1):service_ftp.c  (snort-2.9.17)
skipping to change at line 128 skipping to change at line 128
{APP_ID_FTP_CONTROL, APPINFO_FLAG_SERVICE_ADDITIONAL}, {APP_ID_FTP_CONTROL, APPINFO_FLAG_SERVICE_ADDITIONAL},
{APP_ID_FTP_ACTIVE, APPINFO_FLAG_SERVICE_ADDITIONAL}, {APP_ID_FTP_ACTIVE, APPINFO_FLAG_SERVICE_ADDITIONAL},
{APP_ID_FTP_PASSIVE, APPINFO_FLAG_SERVICE_ADDITIONAL}, {APP_ID_FTP_PASSIVE, APPINFO_FLAG_SERVICE_ADDITIONAL},
{APP_ID_FTPS, APPINFO_FLAG_SERVICE_ADDITIONAL} {APP_ID_FTPS, APPINFO_FLAG_SERVICE_ADDITIONAL}
}; };
static int16_t ftp_data_app_id = 0; static int16_t ftp_data_app_id = 0;
static int ftp_init(const InitServiceAPI * const init_api) static int ftp_init(const InitServiceAPI * const init_api)
{ {
#ifdef TARGET_BASED
ftp_data_app_id = init_api->dpd->addProtocolReference("ftp-data"); ftp_data_app_id = init_api->dpd->addProtocolReference("ftp-data");
#endif
init_api->RegisterPattern(&ftp_validate, IPPROTO_TCP, (uint8_t *)FTP_PATTERN 1, sizeof(FTP_PATTERN1)-1, 0, "ftp", init_api->pAppidConfig); init_api->RegisterPattern(&ftp_validate, IPPROTO_TCP, (uint8_t *)FTP_PATTERN 1, sizeof(FTP_PATTERN1)-1, 0, "ftp", init_api->pAppidConfig);
init_api->RegisterPattern(&ftp_validate, IPPROTO_TCP, (uint8_t *)FTP_PATTERN 2, sizeof(FTP_PATTERN2)-1, 0, "ftp", init_api->pAppidConfig); init_api->RegisterPattern(&ftp_validate, IPPROTO_TCP, (uint8_t *)FTP_PATTERN 2, sizeof(FTP_PATTERN2)-1, 0, "ftp", init_api->pAppidConfig);
init_api->RegisterPattern(&ftp_validate, IPPROTO_TCP, (uint8_t *)FTP_PATTERN 3, sizeof(FTP_PATTERN3)-1, -1, "ftp", init_api->pAppidConfig); init_api->RegisterPattern(&ftp_validate, IPPROTO_TCP, (uint8_t *)FTP_PATTERN 3, sizeof(FTP_PATTERN3)-1, -1, "ftp", init_api->pAppidConfig);
init_api->RegisterPattern(&ftp_validate, IPPROTO_TCP, (uint8_t *)FTP_PATTERN 4, sizeof(FTP_PATTERN4)-1, -1, "ftp", init_api->pAppidConfig); init_api->RegisterPattern(&ftp_validate, IPPROTO_TCP, (uint8_t *)FTP_PATTERN 4, sizeof(FTP_PATTERN4)-1, -1, "ftp", init_api->pAppidConfig);
unsigned i; unsigned i;
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(&ftp_validate, appIdRegistry[i].appId, appIdRegi stry[i].additionalInfo, init_api->pAppidConfig); init_api->RegisterAppId(&ftp_validate, appIdRegistry[i].appId, appIdRegi stry[i].additionalInfo, init_api->pAppidConfig);
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added

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