Squashed commit of the following:
commit
cc76d85724b799e2727969259dcf9e18603e4742
Author: davis mcpherson <davmcphe.cisco.com>
Date: Fri Jan 13 07:49:28 2017 -0500
remove config option that specifies directory for thirdparty appid detection library until third party support is enabled
commit
1b0e15e770db439b5d836ee50a858c69e80dceda
Author: Russ Combs <rucombs@cisco.com>
Date: Wed Jan 11 12:07:41 2017 -0500
fix flush issues
fix getter for tracker flush flags to return uint16_t istead of uint8_t since the flags variable is a uinit16_t
"enable appid debug logging" },
{ "dump_ports", Parameter::PT_BOOL, nullptr, "false",
"enable dump of appid port information" },
+#ifdef REMOVED_WHILE_NOT_IN_USE
{ "thirdparty_appid_dir", Parameter::PT_STRING, nullptr, nullptr,
"directory to load thirdparty appid detectors from" },
+#endif
{ "session_log_filter", Parameter::PT_TABLE, session_log_filter, nullptr,
"session log filter options" },
{ nullptr, Parameter::PT_MAX, nullptr, nullptr, nullptr }
this->ts_last = ts_last;
}
- uint8_t get_tf_flags() const
+ uint16_t get_tf_flags() const
{
return tf_flags;
}
// FIXIT-L make this protected...
public:
- uint16_t wscale; /* window scale setting */
- uint16_t mss; /* max segment size */
+ uint16_t wscale = 0; /* window scale setting */
+ uint16_t mss = 0; /* max segment size */
};
// <--- note -- the 'state' parameter must be a reference
uint32_t bytes_processed = 0;
uint32_t stop_seq = seglist.next->seq + bytes;
- do
+ while ( seglist.next and SEQ_LT(seglist.next->seq, stop_seq) )
{
seglist_base_seq = seglist.next->seq;
uint32_t footprint = stop_seq - seglist_base_seq;
}
else
tracker->clear_tf_flags(TF_MISSING_PREV_PKT);
+
+ // check here instead of in while to allow single segment flushes
+ if ( !flush_data_ready() )
+ break;
}
- while ( seglist.next and flush_data_ready( ) );
return bytes_processed;
}