-- added --warn-flowbits
-- tweaked flowbits counts start up output
-- updates to snort.lua and snort_defaults.lua
+-- fixed stream_icmp counts
123
-- refactored documentation
{
empty_trash();
+#if 0
+ // FIXIT-H multiple policies causes ref_counts > 0
for ( auto* p : s_trash )
{
if ( !p->is_inactive() )
printf("%s = %u\n", p->get_api()->base.name, p->get_ref(0));
}
+#endif
for ( auto* p : s_handlers )
{
if ( !p )
{
- if ( key == mod->get_name() )
- // handle things like x = { 1 }
- // where x is a table not a list and 1 should be
- // considered a key not a value
- ParseError("can't find %s.%s", fqn, v.get_as_string());
- else
- ParseError("can't find %s", fqn);
+ // FIXIT-L handle things like x = { 1 }
+ // where x is a table not a list and 1 should be
+ // considered a key not a value; ideally say
+ // can't find x.1 instead of just can't find x
+ ParseError("can't find %s", fqn);
++s_errors;
return false;
}
IcmpSession::IcmpSession(Flow* flow) : Session(flow)
{
setup(nullptr);
+ icmpStats.created--;
}
bool IcmpSession::setup(Packet*)
echo_count = 0;
ssn_time.tv_sec = 0;
ssn_time.tv_usec = 0;
+ icmpStats.created++;
return true;
}
/****************************************************************************
*
-** Copyright (C) 2014 Cisco and/or its affiliates. All rights reserved.
- * Copyright (C) 2005-2013 Sourcefire, Inc.
+ * Copyright (C) 2014 Cisco and/or its affiliates. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License Version 2 as
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
****************************************************************************/
+// stream_icmp.cc author Russ Combs <rucombs@cisco.com>
#ifdef HAVE_CONFIG_H
#include "config.h"