mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Merge remote-tracking branch 'origin/topic/johanna/random-indentation'
* origin/topic/johanna/random-indentation: Fix indentation of scripts / tests
This commit is contained in:
commit
4c46c02aec
2 changed files with 5 additions and 5 deletions
|
@ -46,7 +46,7 @@ event DHCP::log_dhcp(rec: DHCP::Info)
|
||||||
$orig_p=rec$client_port,
|
$orig_p=rec$client_port,
|
||||||
$resp_h=rec$server_addr,
|
$resp_h=rec$server_addr,
|
||||||
$resp_p=rec$server_port,
|
$resp_p=rec$server_port,
|
||||||
$proto=17]; # DHCP is typically UDP
|
$proto=17]; # DHCP is typically UDP
|
||||||
|
|
||||||
if ( rec?$client_software && rec$assigned_addr != 255.255.255.255 )
|
if ( rec?$client_software && rec$assigned_addr != 255.255.255.255 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,11 +37,11 @@ global servers: table[int] of Val = table();
|
||||||
|
|
||||||
event zeek_init()
|
event zeek_init()
|
||||||
{
|
{
|
||||||
outfile = open("../out");
|
outfile = open("../out");
|
||||||
# first read in the old stuff into the table...
|
# first read in the old stuff into the table...
|
||||||
Input::add_table([$source="../input.log", $name="input", $idx=Idx, $val=Val, $destination=servers,
|
Input::add_table([$source="../input.log", $name="input", $idx=Idx, $val=Val, $destination=servers,
|
||||||
$pred(typ: Input::Event, left: Idx, right: Val) = { right$notb = !right$b; return T; }
|
$pred(typ: Input::Event, left: Idx, right: Val) = { right$notb = !right$b; return T; }
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
event Input::end_of_data(name: string, source: string)
|
event Input::end_of_data(name: string, source: string)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue