#include <collector.h>
Public Methods | |
| Collector () | |
| A constuctor. | |
| virtual | ~Collector () |
| A virtual descructor. | |
| void | BindAndLoop () |
| Does all the work (binds local socket, creates new threads, accepts data, etc). | |
| void | setConfiguration (MConfig &) |
| Set configuration parameters. | |
| virtual void | setIfInfoFile (const char *_newVal) |
| Set the filename of the interface information file. | |
| virtual const char * | getIfInfoFile () |
| Get the filename of the interface information file. | |
| void | setRemotePeer (const InetHostAddress &, const InetHostAddress &, const uint16_t &, const string &) |
| Description missing. | |
| RemoteDetector | getRemotePeer (const InetHostAddress &) |
| Description missing. | |
| void | makeSlots (uint32_t &, uint32_t &) |
| Description missing. | |
| TimeSlot * | getProcTS () |
| Description missing. | |
| string | getUID () const |
| Description missing. | |
Private Attributes | |
| const char * | ifinfofile |
| Keeps the filename for the interface info file (created by the python script). | |
| InetHostAddress | router |
| The IPv4 address of the router that sends Netflow(tm) data. | |
| InetHostAddress | websrv |
| The IPv4 address of the web server that presents Panoptis output. | |
| Mutex * | mtx |
| For synchronizing between Collector, Detector/Analyzer and Dispatcher. | |
| uint32_t | SlotPeriod |
| The TIMESLOT period. | |
| uint32_t | slotcount |
| Total number of TIMESLOT periods. | |
| float | increase |
| Description missing. | |
| float | percentage |
| Description missing. | |
| char * | incharge |
| Description missing. | |
| char * | execcmd |
| Description missing. | |
| uint16_t | port |
| Description missing. | |
| uint16 | peer_port |
| Description missing. | |
| uint16 | web_port |
| Description missing. | |
| vector< RemoteDetector > | RemotePeers |
| Description missing. | |
| UDPSocket | sock |
| Description missing. | |
| TimeSlot * | tsAdd |
| Description missing. | |
| TimeSlot * | tsProc |
| Description missing. | |
| TimeSlot * | tsPrev |
| Description missing. | |
| TimeSlot * | tsLast |
| Description missing. | |
| PDU * | datapacket |
| Description missing. | |
| uint8_t | buff [MAX_DATAGRAM_LEN] |
| Description missing. | |
| uint32_t | lostpackets |
| How many packets where lost. | |
| string | myuid |
| Description missing. | |
| uint16_t | netflow |
| Description missing. | |
Receives, pases and stores in shared memory the Netflow data. Current version supports Netflow v1, v5 (tested) v8 (untested) and v9 (experimental)
|
|
A constuctor. Detailed info |
|
|
A virtual descructor. Detailed info |
|
|
Does all the work (binds local socket, creates new threads, accepts data, etc).
|
|
|
Get the filename of the interface information file.
|
|
|
Description missing.
|
|
|
Description missing.
|
|
|
Description missing.
|
|
||||||||||||
|
Description missing.
|
|
|
Set configuration parameters. The configuration file MUST contain all these (param,value) pairs: ROUTER, WEB_SERVER, UID, TIMESLOT, NETFLOW, INCREASE, PERCENTAGE, OWNER, EXECCMD, COLLECTOR_PORT, PEER_PORT, WEB_PORT, DB_SCRIPT, PEER_CONN |
|
|
Set the filename of the interface information file.
|
|
||||||||||||||||||||
|
Description missing.
|
|
|
Description missing.
|
|
|
Description missing.
|
|
|
Description missing.
|
|
|
Keeps the filename for the interface info file (created by the python script).
|
|
|
Description missing.
|
|
|
Description missing.
|
|
|
How many packets where lost.
|
|
|
For synchronizing between Collector, Detector/Analyzer and Dispatcher.
|
|
|
Description missing.
|
|
|
Description missing.
|
|
|
Description missing.
|
|
|
Description missing.
|
|
|
Description missing.
|
|
|
Description missing.
|
|
|
The IPv4 address of the router that sends Netflow(tm) data.
|
|
|
Total number of TIMESLOT periods.
|
|
|
The TIMESLOT period.
|
|
|
Description missing.
|
|
|
Description missing.
|
|
|
Description missing.
|
|
|
Description missing.
|
|
|
Description missing.
|
|
|
Description missing.
|
|
|
The IPv4 address of the web server that presents Panoptis output.
|
1.2.18