// this is the current version of the base api
// must be prefixed to subtype version
-#define BASE_API_VERSION 5
+#define BASE_API_VERSION 6
// set options to API_OPTIONS to ensure compatibility
#ifndef API_OPTIONS
uint64_t get_raw3() const { return
((events_generated >> BASE_2XX_EVENTS) & bitmask).to_ulong(); }
+ uint64_t get_raw4() const { return
+ ((events_generated >> (BASE_2XX_EVENTS + 64)) & bitmask).to_ulong(); }
+
private:
static const unsigned BASE_1XX_EVENTS = 100;
static const unsigned BASE_2XX_EVENTS = 200;
void HttpMsgSection::print_section_wrapup(FILE* output) const
{
- fprintf(output, "Infractions: %016" PRIx64 " %016" PRIx64 ", Events: %016" PRIx64 " %016"
- PRIx64 " %016" PRIx64 ", TCP Close: %s\n\n",
+ fprintf(output, "Infractions: %016" PRIx64 " %016" PRIx64 " %016" PRIx64 ", Events: %016"
+ PRIx64 " %016" PRIx64 " %016" PRIx64 " %016" PRIx64 ", TCP Close: %s\n\n",
+ transaction->get_infractions(source_id)->get_raw3(),
transaction->get_infractions(source_id)->get_raw2(),
transaction->get_infractions(source_id)->get_raw(),
+ session_data->events[source_id]->get_raw4(),
session_data->events[source_id]->get_raw3(),
session_data->events[source_id]->get_raw2(),
session_data->events[source_id]->get_raw(),
(infractions & std::bitset<MAX>(0xFFFFFFFFFFFFFFFF)).to_ulong(); }
uint64_t get_raw2() const { return
((infractions >> 64) & std::bitset<MAX>(0xFFFFFFFFFFFFFFFF)).to_ulong(); }
+ uint64_t get_raw3() const { return
+ ((infractions >> 128) & std::bitset<MAX>(0xFFFFFFFFFFFFFFFF)).to_ulong(); }
private:
std::bitset<MAX> infractions = 0;