flow_learn_span_example.cpp File Reference
#include <nt.h>
#include <algorithm>
#include <array>
#include <atomic>
#include <cstdint>
#include <cstring>
#include <functional>
#include <iostream>
#include <memory>
#include <string>
#include <thread>
#include <unordered_map>
#include <vector>
Go to the source code of this file.
Namespaces | |
anonymous_namespace{flow_learn_span_example.cpp} | |
Macros | |
#define | STR_INNER(A) #A |
#define | STR(A) STR_INNER(A) |
#define | BLACKLIST 3 |
#define | WHITELIST 4 |
Variables | |
uint64_t | anonymous_namespace{flow_learn_span_example.cpp}::counter_unhandled = 0 |
uint64_t | anonymous_namespace{flow_learn_span_example.cpp}::counter_miss = 0 |
uint64_t | anonymous_namespace{flow_learn_span_example.cpp}::counter_blacklist_hit = 0 |
uint64_t | anonymous_namespace{flow_learn_span_example.cpp}::counter_whitelist_hit = 0 |
NtFlowStream_t | anonymous_namespace{flow_learn_span_example.cpp}::flow_stream |
std::unordered_multimap< uint64_t, std::unique_ptr< NtFlow_t > > | anonymous_namespace{flow_learn_span_example.cpp}::flow_map |
std::atomic< uint64_t > | anonymous_namespace{flow_learn_span_example.cpp}::flow_learn_queue_read_index {0} |
std::atomic< uint64_t > | anonymous_namespace{flow_learn_span_example.cpp}::flow_learn_queue_write_index {0} |
std::array< NtFlow_t *, 0x100000 > | anonymous_namespace{flow_learn_span_example.cpp}::flow_learn_queue |
constexpr uint64_t | anonymous_namespace{flow_learn_span_example.cpp}::flow_learn_queue_index_mask = 0xfffff |
Macro Definition Documentation
#define STR_INNER | ( | A | ) | #A |
Definition at line 97 of file flow_learn_span_example.cpp.
#define STR | ( | A | ) | STR_INNER(A) |
Definition at line 98 of file flow_learn_span_example.cpp.
Referenced by main().
#define BLACKLIST 3 |
Definition at line 200 of file flow_learn_span_example.cpp.
Referenced by main().
#define WHITELIST 4 |
Definition at line 201 of file flow_learn_span_example.cpp.
Referenced by anonymous_namespace{flow_learn_span_example.cpp}::handle_stream_miss(), and main().
Function Documentation
int main | ( | int | , |
char ** | |||
) |
Definition at line 364 of file flow_learn_span_example.cpp.