mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Re-add TYPE_COUNTER without function and deprecation marker.
This commit is contained in:
parent
417a6eb1e9
commit
cd3400f957
8 changed files with 81 additions and 71 deletions
6
NEWS
6
NEWS
|
@ -8,6 +8,12 @@ Zeek 4.0.0
|
||||||
|
|
||||||
TODO: nothing notable yet
|
TODO: nothing notable yet
|
||||||
|
|
||||||
|
Removed Functionality
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
- The counter type was removed. This type was never fully functional/used
|
||||||
|
anywhere.
|
||||||
|
|
||||||
Zeek 3.2.0
|
Zeek 3.2.0
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
|
43
src/Type.cc
43
src/Type.cc
|
@ -34,27 +34,28 @@ const char* type_name(zeek::TypeTag t)
|
||||||
"bool", // 1
|
"bool", // 1
|
||||||
"int", // 2
|
"int", // 2
|
||||||
"count", // 3
|
"count", // 3
|
||||||
"double", // 4
|
"counter", // 4
|
||||||
"time", // 5
|
"double", // 5
|
||||||
"interval", // 6
|
"time", // 6
|
||||||
"string", // 7
|
"interval", // 7
|
||||||
"pattern", // 8
|
"string", // 8
|
||||||
"enum", // 9
|
"pattern", // 9
|
||||||
"timer", // 10
|
"enum", // 10
|
||||||
"port", // 11
|
"timer", // 11
|
||||||
"addr", // 12
|
"port", // 12
|
||||||
"subnet", // 13
|
"addr", // 13
|
||||||
"any", // 14
|
"subnet", // 14
|
||||||
"table", // 15
|
"any", // 16
|
||||||
"union", // 16
|
"table", // 16
|
||||||
"record", // 17
|
"union", // 17
|
||||||
"types", // 18
|
"record", // 18
|
||||||
"func", // 19
|
"types", // 19
|
||||||
"file", // 20
|
"func", // 20
|
||||||
"vector", // 21
|
"file", // 21
|
||||||
"opaque", // 22
|
"vector", // 22
|
||||||
"type", // 23
|
"opaque", // 23
|
||||||
"error", // 24
|
"type", // 24
|
||||||
|
"error", // 25
|
||||||
};
|
};
|
||||||
|
|
||||||
if ( int(t) >= NUM_TYPES )
|
if ( int(t) >= NUM_TYPES )
|
||||||
|
|
45
src/Type.h
45
src/Type.h
|
@ -39,27 +39,28 @@ enum TypeTag {
|
||||||
TYPE_BOOL, // 1
|
TYPE_BOOL, // 1
|
||||||
TYPE_INT, // 2
|
TYPE_INT, // 2
|
||||||
TYPE_COUNT, // 3
|
TYPE_COUNT, // 3
|
||||||
TYPE_DOUBLE, // 4
|
TYPE_COUNTER [[deprecated("Remove in v4.1. TYPE_COUNTER was removed; use TYPE_COUNT instead.")]], // 4
|
||||||
TYPE_TIME, // 5
|
TYPE_DOUBLE, // 5
|
||||||
TYPE_INTERVAL, // 6
|
TYPE_TIME, // 6
|
||||||
TYPE_STRING, // 7
|
TYPE_INTERVAL, // 7
|
||||||
TYPE_PATTERN, // 8
|
TYPE_STRING, // 8
|
||||||
TYPE_ENUM, // 9
|
TYPE_PATTERN, // 9
|
||||||
TYPE_TIMER, // 10
|
TYPE_ENUM, // 10
|
||||||
TYPE_PORT, // 11
|
TYPE_TIMER, // 11
|
||||||
TYPE_ADDR, // 12
|
TYPE_PORT, // 12
|
||||||
TYPE_SUBNET, // 13
|
TYPE_ADDR, // 13
|
||||||
TYPE_ANY, // 14
|
TYPE_SUBNET, // 14
|
||||||
TYPE_TABLE, // 15
|
TYPE_ANY, // 15
|
||||||
TYPE_UNION, // 16
|
TYPE_TABLE, // 16
|
||||||
TYPE_RECORD, // 17
|
TYPE_UNION, // 17
|
||||||
TYPE_LIST, // 18
|
TYPE_RECORD, // 18
|
||||||
TYPE_FUNC, // 19
|
TYPE_LIST, // 19
|
||||||
TYPE_FILE, // 20
|
TYPE_FUNC, // 20
|
||||||
TYPE_VECTOR, // 21
|
TYPE_FILE, // 21
|
||||||
TYPE_OPAQUE, // 22
|
TYPE_VECTOR, // 22
|
||||||
TYPE_TYPE, // 23
|
TYPE_OPAQUE, // 23
|
||||||
TYPE_ERROR // 24
|
TYPE_TYPE, // 24
|
||||||
|
TYPE_ERROR // 25
|
||||||
#define NUM_TYPES (int(TYPE_ERROR) + 1)
|
#define NUM_TYPES (int(TYPE_ERROR) + 1)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -935,6 +936,8 @@ constexpr auto TYPE_BOOL = zeek::TYPE_BOOL;
|
||||||
constexpr auto TYPE_INT = zeek::TYPE_INT;
|
constexpr auto TYPE_INT = zeek::TYPE_INT;
|
||||||
[[deprecated("Remove in v4.1. Use zeek::TYPE_COUNT instead.")]]
|
[[deprecated("Remove in v4.1. Use zeek::TYPE_COUNT instead.")]]
|
||||||
constexpr auto TYPE_COUNT = zeek::TYPE_COUNT;
|
constexpr auto TYPE_COUNT = zeek::TYPE_COUNT;
|
||||||
|
[[deprecated("Remove in v4.1. TYPE_COUNTER was removed. Use zeek::TYPE_COUNT instead.")]]
|
||||||
|
constexpr auto TYPE_COUNTER = zeek::TYPE_COUNTER;
|
||||||
[[deprecated("Remove in v4.1. Use zeek::TYPE_DOUBLE instead.")]]
|
[[deprecated("Remove in v4.1. Use zeek::TYPE_DOUBLE instead.")]]
|
||||||
constexpr auto TYPE_DOUBLE = zeek::TYPE_DOUBLE;
|
constexpr auto TYPE_DOUBLE = zeek::TYPE_DOUBLE;
|
||||||
[[deprecated("Remove in v4.1. Use zeek::TYPE_TIME instead.")]]
|
[[deprecated("Remove in v4.1. Use zeek::TYPE_TIME instead.")]]
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
1st stuff
|
1st stuff
|
||||||
hrw, 0, zeek/cluster/node/proxy-1/
|
hrw, 0, zeek/cluster/node/proxy-1/
|
||||||
hrw (custom pool), 0, zeek/cluster/node/proxy-2/
|
hrw (custom pool), 0, zeek/cluster/node/proxy-1/
|
||||||
hrw, 1, zeek/cluster/node/proxy-1/
|
hrw, 1, zeek/cluster/node/proxy-1/
|
||||||
hrw (custom pool), 1, zeek/cluster/node/proxy-2/
|
hrw (custom pool), 1, zeek/cluster/node/proxy-1/
|
||||||
hrw, 2, zeek/cluster/node/proxy-1/
|
hrw, 2, zeek/cluster/node/proxy-1/
|
||||||
hrw (custom pool), 2, zeek/cluster/node/proxy-1/
|
hrw (custom pool), 2, zeek/cluster/node/proxy-1/
|
||||||
hrw, 3, zeek/cluster/node/proxy-1/
|
hrw, 3, zeek/cluster/node/proxy-1/
|
||||||
hrw (custom pool), 3, zeek/cluster/node/proxy-2/
|
hrw (custom pool), 3, zeek/cluster/node/proxy-1/
|
||||||
hrw, 13, zeek/cluster/node/proxy-1/
|
hrw, 13, zeek/cluster/node/proxy-1/
|
||||||
hrw (custom pool), 13, zeek/cluster/node/proxy-2/
|
hrw (custom pool), 13, zeek/cluster/node/proxy-2/
|
||||||
hrw, 37, zeek/cluster/node/proxy-1/
|
hrw, 37, zeek/cluster/node/proxy-1/
|
||||||
hrw (custom pool), 37, zeek/cluster/node/proxy-2/
|
hrw (custom pool), 37, zeek/cluster/node/proxy-2/
|
||||||
hrw, 42, zeek/cluster/node/proxy-1/
|
hrw, 42, zeek/cluster/node/proxy-1/
|
||||||
hrw (custom pool), 42, zeek/cluster/node/proxy-1/
|
hrw (custom pool), 42, zeek/cluster/node/proxy-2/
|
||||||
hrw, 101, zeek/cluster/node/proxy-1/
|
hrw, 101, zeek/cluster/node/proxy-1/
|
||||||
hrw (custom pool), 101, zeek/cluster/node/proxy-2/
|
hrw (custom pool), 101, zeek/cluster/node/proxy-2/
|
||||||
rr, zeek/cluster/node/proxy-1/
|
rr, zeek/cluster/node/proxy-1/
|
||||||
|
@ -32,19 +32,19 @@ rr (custom pool), zeek/cluster/node/proxy-1/
|
||||||
rr, zeek/cluster/node/proxy-1/
|
rr, zeek/cluster/node/proxy-1/
|
||||||
rr (custom pool), zeek/cluster/node/proxy-2/
|
rr (custom pool), zeek/cluster/node/proxy-2/
|
||||||
hrw, 0, zeek/cluster/node/proxy-1/
|
hrw, 0, zeek/cluster/node/proxy-1/
|
||||||
hrw (custom pool), 0, zeek/cluster/node/proxy-2/
|
hrw (custom pool), 0, zeek/cluster/node/proxy-1/
|
||||||
hrw, 1, zeek/cluster/node/proxy-1/
|
hrw, 1, zeek/cluster/node/proxy-1/
|
||||||
hrw (custom pool), 1, zeek/cluster/node/proxy-2/
|
hrw (custom pool), 1, zeek/cluster/node/proxy-1/
|
||||||
hrw, 2, zeek/cluster/node/proxy-1/
|
hrw, 2, zeek/cluster/node/proxy-1/
|
||||||
hrw (custom pool), 2, zeek/cluster/node/proxy-1/
|
hrw (custom pool), 2, zeek/cluster/node/proxy-1/
|
||||||
hrw, 3, zeek/cluster/node/proxy-1/
|
hrw, 3, zeek/cluster/node/proxy-1/
|
||||||
hrw (custom pool), 3, zeek/cluster/node/proxy-2/
|
hrw (custom pool), 3, zeek/cluster/node/proxy-1/
|
||||||
hrw, 13, zeek/cluster/node/proxy-1/
|
hrw, 13, zeek/cluster/node/proxy-1/
|
||||||
hrw (custom pool), 13, zeek/cluster/node/proxy-2/
|
hrw (custom pool), 13, zeek/cluster/node/proxy-2/
|
||||||
hrw, 37, zeek/cluster/node/proxy-1/
|
hrw, 37, zeek/cluster/node/proxy-1/
|
||||||
hrw (custom pool), 37, zeek/cluster/node/proxy-2/
|
hrw (custom pool), 37, zeek/cluster/node/proxy-2/
|
||||||
hrw, 42, zeek/cluster/node/proxy-1/
|
hrw, 42, zeek/cluster/node/proxy-1/
|
||||||
hrw (custom pool), 42, zeek/cluster/node/proxy-1/
|
hrw (custom pool), 42, zeek/cluster/node/proxy-2/
|
||||||
hrw, 101, zeek/cluster/node/proxy-1/
|
hrw, 101, zeek/cluster/node/proxy-1/
|
||||||
hrw (custom pool), 101, zeek/cluster/node/proxy-2/
|
hrw (custom pool), 101, zeek/cluster/node/proxy-2/
|
||||||
2nd stuff
|
2nd stuff
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
1st stuff
|
1st stuff
|
||||||
hrw, 0, zeek/cluster/node/proxy-2/
|
hrw, 0, zeek/cluster/node/proxy-1/
|
||||||
hrw, 1, zeek/cluster/node/proxy-2/
|
hrw, 1, zeek/cluster/node/proxy-1/
|
||||||
hrw, 2, zeek/cluster/node/proxy-1/
|
hrw, 2, zeek/cluster/node/proxy-1/
|
||||||
hrw, 3, zeek/cluster/node/proxy-2/
|
hrw, 3, zeek/cluster/node/proxy-1/
|
||||||
hrw, 13, zeek/cluster/node/proxy-2/
|
hrw, 13, zeek/cluster/node/proxy-2/
|
||||||
hrw, 37, zeek/cluster/node/proxy-2/
|
hrw, 37, zeek/cluster/node/proxy-2/
|
||||||
hrw, 42, zeek/cluster/node/proxy-1/
|
hrw, 42, zeek/cluster/node/proxy-2/
|
||||||
hrw, 101, zeek/cluster/node/proxy-2/
|
hrw, 101, zeek/cluster/node/proxy-2/
|
||||||
rr, zeek/cluster/node/proxy-1/
|
rr, zeek/cluster/node/proxy-1/
|
||||||
rr, zeek/cluster/node/proxy-2/
|
rr, zeek/cluster/node/proxy-2/
|
||||||
|
@ -15,13 +15,13 @@ rr, zeek/cluster/node/proxy-1/
|
||||||
rr, zeek/cluster/node/proxy-2/
|
rr, zeek/cluster/node/proxy-2/
|
||||||
rr, zeek/cluster/node/proxy-1/
|
rr, zeek/cluster/node/proxy-1/
|
||||||
rr, zeek/cluster/node/proxy-2/
|
rr, zeek/cluster/node/proxy-2/
|
||||||
hrw, 0, zeek/cluster/node/proxy-2/
|
hrw, 0, zeek/cluster/node/proxy-1/
|
||||||
hrw, 1, zeek/cluster/node/proxy-2/
|
hrw, 1, zeek/cluster/node/proxy-1/
|
||||||
hrw, 2, zeek/cluster/node/proxy-1/
|
hrw, 2, zeek/cluster/node/proxy-1/
|
||||||
hrw, 3, zeek/cluster/node/proxy-2/
|
hrw, 3, zeek/cluster/node/proxy-1/
|
||||||
hrw, 13, zeek/cluster/node/proxy-2/
|
hrw, 13, zeek/cluster/node/proxy-2/
|
||||||
hrw, 37, zeek/cluster/node/proxy-2/
|
hrw, 37, zeek/cluster/node/proxy-2/
|
||||||
hrw, 42, zeek/cluster/node/proxy-1/
|
hrw, 42, zeek/cluster/node/proxy-2/
|
||||||
hrw, 101, zeek/cluster/node/proxy-2/
|
hrw, 101, zeek/cluster/node/proxy-2/
|
||||||
2nd stuff
|
2nd stuff
|
||||||
hrw, 0, zeek/cluster/node/proxy-2/
|
hrw, 0, zeek/cluster/node/proxy-2/
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
|
got distributed event hrw, 0
|
||||||
|
got distributed event hrw, 1
|
||||||
got distributed event hrw, 2
|
got distributed event hrw, 2
|
||||||
got distributed event hrw, 42
|
got distributed event hrw, 3
|
||||||
got distributed event rr, 0
|
got distributed event rr, 0
|
||||||
got distributed event rr, 2
|
got distributed event rr, 2
|
||||||
got distributed event rr, 13
|
got distributed event rr, 13
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
got distributed event hrw, 0
|
|
||||||
got distributed event hrw, 1
|
|
||||||
got distributed event hrw, 3
|
|
||||||
got distributed event hrw, 13
|
got distributed event hrw, 13
|
||||||
got distributed event hrw, 37
|
got distributed event hrw, 37
|
||||||
|
got distributed event hrw, 42
|
||||||
got distributed event hrw, 101
|
got distributed event hrw, 101
|
||||||
got distributed event rr, 1
|
got distributed event rr, 1
|
||||||
got distributed event rr, 3
|
got distributed event rr, 3
|
||||||
|
|
|
@ -8,18 +8,18 @@ T
|
||||||
F
|
F
|
||||||
[id=0, user_data=alice]
|
[id=0, user_data=alice]
|
||||||
[id=3, user_data=dave]
|
[id=3, user_data=dave]
|
||||||
[id=4, user_data=eve]
|
[id=3, user_data=dave]
|
||||||
[id=4, user_data=eve]
|
[id=0, user_data=alice]
|
||||||
|
[id=0, user_data=alice]
|
||||||
[id=4, user_data=eve]
|
[id=4, user_data=eve]
|
||||||
[id=0, user_data=alice]
|
[id=0, user_data=alice]
|
||||||
[id=3, user_data=dave]
|
|
||||||
[id=1, user_data=bob]
|
[id=1, user_data=bob]
|
||||||
[id=0, user_data=alice]
|
[id=0, user_data=alice]
|
||||||
[id=1, user_data=bob]
|
[id=1, user_data=bob]
|
||||||
T
|
T
|
||||||
[id=4, user_data=eve]
|
|
||||||
[id=3, user_data=dave]
|
[id=3, user_data=dave]
|
||||||
[id=4, user_data=eve]
|
[id=3, user_data=dave]
|
||||||
|
[id=3, user_data=dave]
|
||||||
[id=4, user_data=eve]
|
[id=4, user_data=eve]
|
||||||
[id=4, user_data=eve]
|
[id=4, user_data=eve]
|
||||||
[id=4, user_data=eve]
|
[id=4, user_data=eve]
|
||||||
|
@ -30,11 +30,11 @@ T
|
||||||
T
|
T
|
||||||
[id=0, user_data=alice]
|
[id=0, user_data=alice]
|
||||||
[id=3, user_data=dave]
|
[id=3, user_data=dave]
|
||||||
[id=4, user_data=eve]
|
|
||||||
[id=4, user_data=eve]
|
|
||||||
[id=4, user_data=eve]
|
|
||||||
[id=0, user_data=alice]
|
|
||||||
[id=3, user_data=dave]
|
[id=3, user_data=dave]
|
||||||
|
[id=0, user_data=alice]
|
||||||
|
[id=0, user_data=alice]
|
||||||
|
[id=4, user_data=eve]
|
||||||
|
[id=0, user_data=alice]
|
||||||
[id=1, user_data=bob]
|
[id=1, user_data=bob]
|
||||||
[id=0, user_data=alice]
|
[id=0, user_data=alice]
|
||||||
[id=1, user_data=bob]
|
[id=1, user_data=bob]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue