The page to be sent can be read from a file:
- react = { page = "custmized_block_page.html", }
+ react = { page = "customized_block_page.html", }
or else the default is used:
void RegexOffload::tterm()
{
- // FIXIT-M break this overcoupling. In reality we shouldn't be evaluating latency in offload.
+ // FIXIT-M break this over-coupling. In reality we shouldn't be evaluating latency in offload.
PacketLatency::tterm();
RuleLatency::tterm();
}
**
** NOTES
**
- ** Circular buffer is thread safe for one writer and one reader thread
+ ** Circular buffer is thread-safe for one writer and one reader thread
**
** This implementation is inspired by one slot open approach.
** See http://en.wikipedia.org/wiki/Circular_buffer
if (ip_proto == IpProtocol::ICMPV4)
update_icmp4(srcIP, srcPort, dstIP, dstPort);
-
+
src = srcIP->get_ip4_value();
dst = dstIP->get_ip4_value();
a += d[9]; // port lo & port hi
b += d[10]; // vlan tag, address space id
- c += d[11]; // ip_proto, pkt_type, version, and 8bits of zeroed pad,
+ c += d[11]; // ip_proto, pkt_type, version, and 8 bits of zeroed pad
finalize(a, b, c);
if ( scratch_handlers[i - 1].second )
scratch_handlers[i - 1].second(this);
}
- // FIXME-T: Do we need to shrink_to_fit() state->scratch at this point?
+ // FIXIT-T: Do we need to shrink_to_fit() state->scratch at this point?
}
FreeRuleLists(this);
#ifndef SNORT_DEBUG_H
#define SNORT_DEBUG_H
-// this provides a module trace capabilty that can be set by config to
+// this provides a module trace capability that can be set by config to
// turn on the output of specific debug messages.
//
cleanup();
}
-//FIXIT-M: RELOAD - Move app info tabe cleanup back
+//FIXIT-M: RELOAD - Move app info table cleanup back
//to AppId config destructor - cleanup()
void AppIdConfig::pterm()
{
// 0 - 8 (inclusive) : used heavily in CHP code. DO NOT CHANGE.
// 9 - NUM_METADATA_FIELDS : extra metadata buffers, beyond CHP.
// NUM_METADATA_FIELDS : must always follow the last metadata FID.
-// NUM_HTTP_FIELDS : number of CHP filds, so always RSP_BODY_FID + 1
+// NUM_HTTP_FIELDS : number of CHP fields, so always RSP_BODY_FID + 1
enum HttpFieldIds : uint8_t
{
// 0-8: CHP fields. DO NOT CHANGE
}
/**Set service id on a flow
- * If funtion is implemented, then
+ * If function is implemented, then
* verify detector user data and that we are in packet context
*
* @param Lua_State* - Lua state variable.
{ return 0; }
/**Set client application id on a flow, during packet processing
- * If funtion is implemented, then
+ * If function is implemented, then
* verify detector user data and that we are in packet context
*
* @param Lua_State* - Lua state variable.
}
/**Set client application type id on a flow, during packet processing
- * If funtion is implemented, then
+ * If function is implemented, then
* verify detector user data and that we are in packet context
*
* @param Lua_State* - Lua state variable.
static bool bpf_compile_and_validate()
{
- // FIXIT-M This BPF compilation is not threadsafe and should be handled by the main thread
+ // FIXIT-M This BPF compilation is not thread-safe and should be handled by the main thread
// and this call should use DLT from DAQ rather then hard coding DLT_EN10MB
if ( pcap_compile_nopcap(SNAP_LEN, DLT_EN10MB, &bpf,
config.filter.c_str(), 1, 0) >= 0 )
static const uint8_t VERDICT_REASON_NO_BLOCK = 2; /* Not blocking packet; all enum defined after this indicates blocking */
-// FIXIT-M currently non-threadsafe accesses being done in packet threads against this
+// FIXIT-M currently non-thread-safe accesses being done in packet threads against this
static std::unordered_map<uint8_t, uint8_t> reasons = { {VERDICT_REASON_NO_BLOCK, PacketTracer::PRIORITY_UNSET} };
// FIXIT-M refactor the way this is used so all methods are members called against this pointer
//characters recognized by isspace() as spaces
const uint8_t spaces[] = {' ', '\t', '\n', '\v', '\f', '\r'};
-//character recognized by isblanck() as seperators
+//character recognized by isblank() as separators
const uint8_t blanks[] = {' ', '\t' };
class SipSplitterUT
if ( tmp.empty() )
continue;
- // same critea used for rtrim
+ // same criteria used for rtrim
// http://en.cppreference.com/w/cpp/string/byte/isspace
std::size_t first_non_white_char = tmp.find_first_not_of(" \f\n\r\t\v");