mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
camel-casing for types
This commit is contained in:
parent
92b3723b09
commit
77a517f2b5
4 changed files with 17 additions and 17 deletions
|
@ -18,11 +18,11 @@ export {
|
|||
redef enum Log::ID += { LOG };
|
||||
}
|
||||
|
||||
type idx: record {
|
||||
type Idx: record {
|
||||
i: int;
|
||||
};
|
||||
|
||||
type val: record {
|
||||
type Val: record {
|
||||
b: bool;
|
||||
e: Log::ID;
|
||||
c: count;
|
||||
|
@ -40,13 +40,13 @@ type val: record {
|
|||
ve: vector of int;
|
||||
};
|
||||
|
||||
global servers: table[int] of val = table();
|
||||
global servers: table[int] of Val = table();
|
||||
|
||||
event bro_init()
|
||||
{
|
||||
# first read in the old stuff into the table...
|
||||
Input::create_stream(A::LOG, [$source="input.log"]);
|
||||
Input::add_tablefilter(A::LOG, [$name="ssh", $idx=idx, $val=val, $destination=servers]);
|
||||
Input::add_tablefilter(A::LOG, [$name="ssh", $idx=Idx, $val=Val, $destination=servers]);
|
||||
Input::force_update(A::LOG);
|
||||
print servers;
|
||||
}
|
||||
|
|
|
@ -18,21 +18,21 @@ export {
|
|||
redef enum Log::ID += { LOG };
|
||||
}
|
||||
|
||||
type idx: record {
|
||||
type Idx: record {
|
||||
i: int;
|
||||
};
|
||||
|
||||
type val: record {
|
||||
type Val: record {
|
||||
b: bool;
|
||||
};
|
||||
|
||||
global servers: table[int] of val = table();
|
||||
global servers: table[int] of Val = table();
|
||||
|
||||
event bro_init()
|
||||
{
|
||||
# first read in the old stuff into the table...
|
||||
Input::create_stream(A::LOG, [$source="input.log"]);
|
||||
Input::add_tablefilter(A::LOG, [$name="input", $idx=idx, $val=val, $destination=servers, $want_record=F]);
|
||||
Input::add_tablefilter(A::LOG, [$name="input", $idx=Idx, $val=Val, $destination=servers, $want_record=F]);
|
||||
Input::force_update(A::LOG);
|
||||
print servers;
|
||||
}
|
||||
|
|
|
@ -18,21 +18,21 @@ export {
|
|||
redef enum Log::ID += { LOG };
|
||||
}
|
||||
|
||||
type idx: record {
|
||||
type Idx: record {
|
||||
i: int;
|
||||
};
|
||||
|
||||
type val: record {
|
||||
type Val: record {
|
||||
b: bool;
|
||||
};
|
||||
|
||||
global servers: table[int] of val = table();
|
||||
global servers: table[int] of Val = table();
|
||||
|
||||
event bro_init()
|
||||
{
|
||||
# first read in the old stuff into the table...
|
||||
Input::create_stream(A::LOG, [$source="input.log"]);
|
||||
Input::add_tablefilter(A::LOG, [$name="input", $idx=idx, $val=val, $destination=servers]);
|
||||
Input::add_tablefilter(A::LOG, [$name="input", $idx=Idx, $val=Val, $destination=servers]);
|
||||
Input::force_update(A::LOG);
|
||||
print servers;
|
||||
}
|
||||
|
|
|
@ -24,22 +24,22 @@ export {
|
|||
redef enum Log::ID += { LOG };
|
||||
}
|
||||
|
||||
type idx: record {
|
||||
type Idx: record {
|
||||
i: int;
|
||||
};
|
||||
|
||||
type val: record {
|
||||
type Val: record {
|
||||
b: bool;
|
||||
};
|
||||
|
||||
global servers: table[int] of val = table();
|
||||
global servers: table[int] of Val = table();
|
||||
|
||||
event bro_init()
|
||||
{
|
||||
# first read in the old stuff into the table...
|
||||
Input::create_stream(A::LOG, [$source="input.log"]);
|
||||
Input::add_tablefilter(A::LOG, [$name="input", $idx=idx, $val=val, $destination=servers, $want_record=F,
|
||||
$pred(typ: Input::Event, left: idx, right: bool) = { return right; }
|
||||
Input::add_tablefilter(A::LOG, [$name="input", $idx=Idx, $val=Val, $destination=servers, $want_record=F,
|
||||
$pred(typ: Input::Event, left: Idx, right: bool) = { return right; }
|
||||
]);
|
||||
Input::force_update(A::LOG);
|
||||
if ( 1 in servers ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue