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:
Jon Siwek 2013-08-26 15:31:17 -05:00
parent df84083227
commit 22bf3e1196
103 changed files with 20911 additions and 20772 deletions

View file

@ -1,6 +1,6 @@
#! /usr/bin/awk -f
#
# A diff canonifier that removes all file IDs from file_analysis.log
# A diff canonifier that removes all file IDs from files.log
BEGIN {
FS="\t";
@ -8,7 +8,7 @@ BEGIN {
process = 0;
}
$1 == "#path" && $2 == "file_analysis" {
$1 == "#path" && $2 == "files" {
process = 1;
}
@ -19,10 +19,10 @@ process && column1 > 0 && column2 > 0 {
/^#/ {
for ( i = 0; i < NF; ++i ) {
if ( $i == "id" )
if ( $i == "fuid" )
column1 = i - 1;
if ( $i == "parent_id" )
if ( $i == "parent_fuid" )
column2 = i - 1;
}
}