mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Increase UIDs to 96 bits w/ C/F prefix - BIT-1016
- The bit-length is adjustable via redef'ing bits_per_uid. - Prefix 'C' is used for connection UIDS (including IP tunnels) and 'F' for files.
This commit is contained in:
parent
df84083227
commit
22bf3e1196
103 changed files with 20911 additions and 20772 deletions
|
@ -7,6 +7,7 @@
|
|||
#include "NetVar.h"
|
||||
#include "IPAddr.h"
|
||||
#include "Val.h"
|
||||
#include "UID.h"
|
||||
#include <vector>
|
||||
|
||||
class Connection;
|
||||
|
@ -25,7 +26,7 @@ public:
|
|||
*/
|
||||
EncapsulatingConn()
|
||||
: src_port(0), dst_port(0), proto(TRANSPORT_UNKNOWN),
|
||||
type(BifEnum::Tunnel::NONE), uid(0)
|
||||
type(BifEnum::Tunnel::NONE), uid()
|
||||
{}
|
||||
|
||||
/**
|
||||
|
@ -39,9 +40,9 @@ public:
|
|||
*/
|
||||
EncapsulatingConn(const IPAddr& s, const IPAddr& d)
|
||||
: src_addr(s), dst_addr(d), src_port(0), dst_port(0),
|
||||
proto(TRANSPORT_UNKNOWN), type(BifEnum::Tunnel::IP)
|
||||
proto(TRANSPORT_UNKNOWN), type(BifEnum::Tunnel::IP),
|
||||
uid(Bro::UID(bits_per_uid))
|
||||
{
|
||||
uid = calculate_unique_id();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -108,7 +109,7 @@ protected:
|
|||
uint16 dst_port;
|
||||
TransportProto proto;
|
||||
BifEnum::Tunnel::Type type;
|
||||
uint64 uid;
|
||||
Bro::UID uid;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue