"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/dynamic-preprocessors/appid/service_plugins/service_snmp.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_snmp.c  (snort-2.9.16.1):service_snmp.c  (snort-2.9.17)
skipping to change at line 128 skipping to change at line 128
static tAppRegistryEntry appIdRegistry[] = static tAppRegistryEntry appIdRegistry[] =
{ {
{APP_ID_SNMP, APPINFO_FLAG_SERVICE_UDP_REVERSED|APPINFO_FLAG_SERVICE_ADDITIO NAL} {APP_ID_SNMP, APPINFO_FLAG_SERVICE_UDP_REVERSED|APPINFO_FLAG_SERVICE_ADDITIO NAL}
}; };
static int16_t app_id = 0; static int16_t app_id = 0;
static int snmp_init(const InitServiceAPI * const init_api) static int snmp_init(const InitServiceAPI * const init_api)
{ {
#ifdef TARGET_BASED
app_id = init_api->dpd->addProtocolReference("snmp"); app_id = init_api->dpd->addProtocolReference("snmp");
#endif
init_api->RegisterPattern(&snmp_validate, IPPROTO_UDP, SNMP_PATTERN_2, sizeo f(SNMP_PATTERN_2), 2, "snmp", init_api->pAppidConfig); init_api->RegisterPattern(&snmp_validate, IPPROTO_UDP, SNMP_PATTERN_2, sizeo f(SNMP_PATTERN_2), 2, "snmp", init_api->pAppidConfig);
init_api->RegisterPattern(&snmp_validate, IPPROTO_UDP, SNMP_PATTERN_3, sizeo f(SNMP_PATTERN_3), 2, "snmp", init_api->pAppidConfig); init_api->RegisterPattern(&snmp_validate, IPPROTO_UDP, SNMP_PATTERN_3, sizeo f(SNMP_PATTERN_3), 2, "snmp", init_api->pAppidConfig);
init_api->RegisterPattern(&snmp_validate, IPPROTO_UDP, SNMP_PATTERN_4, sizeo f(SNMP_PATTERN_4), 2, "snmp", init_api->pAppidConfig); init_api->RegisterPattern(&snmp_validate, IPPROTO_UDP, SNMP_PATTERN_4, sizeo f(SNMP_PATTERN_4), 2, "snmp", init_api->pAppidConfig);
init_api->RegisterPattern(&snmp_validate, IPPROTO_UDP, SNMP_PATTERN_2, sizeo f(SNMP_PATTERN_2), 3, "snmp", init_api->pAppidConfig); init_api->RegisterPattern(&snmp_validate, IPPROTO_UDP, SNMP_PATTERN_2, sizeo f(SNMP_PATTERN_2), 3, "snmp", init_api->pAppidConfig);
init_api->RegisterPattern(&snmp_validate, IPPROTO_UDP, SNMP_PATTERN_3, sizeo f(SNMP_PATTERN_3), 3, "snmp", init_api->pAppidConfig); init_api->RegisterPattern(&snmp_validate, IPPROTO_UDP, SNMP_PATTERN_3, sizeo f(SNMP_PATTERN_3), 3, "snmp", init_api->pAppidConfig);
init_api->RegisterPattern(&snmp_validate, IPPROTO_UDP, SNMP_PATTERN_4, sizeo f(SNMP_PATTERN_4), 3, "snmp", init_api->pAppidConfig); init_api->RegisterPattern(&snmp_validate, IPPROTO_UDP, SNMP_PATTERN_4, sizeo f(SNMP_PATTERN_4), 3, "snmp", init_api->pAppidConfig);
init_api->RegisterPattern(&snmp_validate, IPPROTO_UDP, SNMP_PATTERN_2, sizeo f(SNMP_PATTERN_2), 4, "snmp", init_api->pAppidConfig); init_api->RegisterPattern(&snmp_validate, IPPROTO_UDP, SNMP_PATTERN_2, sizeo f(SNMP_PATTERN_2), 4, "snmp", init_api->pAppidConfig);
init_api->RegisterPattern(&snmp_validate, IPPROTO_UDP, SNMP_PATTERN_3, sizeo f(SNMP_PATTERN_3), 4, "snmp", init_api->pAppidConfig); init_api->RegisterPattern(&snmp_validate, IPPROTO_UDP, SNMP_PATTERN_3, sizeo f(SNMP_PATTERN_3), 4, "snmp", init_api->pAppidConfig);
init_api->RegisterPattern(&snmp_validate, IPPROTO_UDP, SNMP_PATTERN_4, sizeo f(SNMP_PATTERN_4), 4, "snmp", init_api->pAppidConfig); init_api->RegisterPattern(&snmp_validate, IPPROTO_UDP, SNMP_PATTERN_4, sizeo f(SNMP_PATTERN_4), 4, "snmp", 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)