mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Port Spicy integration to new AST API.
This commit is contained in:
parent
724daa2792
commit
db98dc4193
16 changed files with 438 additions and 364 deletions
|
@ -1,3 +1,3 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
[error] <...>/event-args-fail.evt:2: signature for hook must be: %error or %error(err: string)
|
||||
[error] <Spicy Plugin for Zeek>: aborting after errors
|
||||
[error] <Spicy support for Zeek>: aborting after errors
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
[error] <...>/event-args-fail.evt:2: signature for hook must be: %error or %error(err: string)
|
||||
[error] <Spicy Plugin for Zeek>: aborting after errors
|
||||
[error] <Spicy support for Zeek>: aborting after errors
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
[error] unknown type 'Test::DOES_NOT_EXIST' exported
|
||||
[error] <...>/foo.spicy:3:1-5:2: cannot export Spicy type 'Test::X': type is self-recursive
|
||||
[error] <...>/foo.spicy:11:1-13:2: cannot export Spicy type 'Test::Z': can only convert tuple types with all-named fields to Zeek
|
||||
[error] <Spicy Plugin for Zeek>: aborting after errors
|
||||
[error] <Spicy support for Zeek>: aborting after errors
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
[error] <...>/foo.spicy:3:1-5:2: type 'Test::A' does not have field 'does_not_exist'
|
||||
[error] <...>/foo.spicy:3:1-5:2: type 'Test::A' does not have field 'does_not_exist'
|
||||
[error] <Spicy Plugin for Zeek>: aborting after errors
|
||||
[error] <Spicy support for Zeek>: aborting after errors
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
# Profiling
|
||||
#
|
||||
#name count
|
||||
hilti/func/SSH::Banner::__on_0x25_done 2
|
||||
hilti/func/SSH::Banner::__parse_SSH_Banner_stage2 2
|
||||
hilti/func/SSH::Banner::__parse_stage1 2
|
||||
hilti/func/SSH::Banner::parse1 2
|
||||
hilti/func/SSH::__register_SSH_Banner 1
|
||||
hilti/func/spicy_hooks_SSH::SSH::Banner::__on_0x25_done 2
|
||||
hilti/total 1
|
||||
spicy/prepare/stream/SSH::Banner 2
|
||||
spicy/unit/SSH::Banner 2
|
||||
|
|
|
@ -5,5 +5,5 @@
|
|||
[i=4, s=<uninitialized>]
|
||||
[zeek] [SPICY_SSH/3/orig] -> event ssh::banner((1, b"OpenSSH_3.8.1p1"))
|
||||
[zeek] [SPICY_SSH/3/orig] -> event ssh::banner((2, b"OpenSSH_3.8.1p1"))
|
||||
[zeek] [SPICY_SSH/3/orig] -> event ssh::banner((3, <error: n/a>))
|
||||
[zeek] [SPICY_SSH/3/orig] -> event ssh::banner((3, b""))
|
||||
[zeek] [SPICY_SSH/3/orig] -> event ssh::banner((4, Null))
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
# @TEST-EXEC: btest-diff output
|
||||
|
||||
type Foo: record {
|
||||
i: int;
|
||||
i: int;
|
||||
s: string &optional;
|
||||
};
|
||||
|
||||
|
@ -27,7 +27,7 @@ public type Banner = unit {
|
|||
dash : /-/;
|
||||
software: /[^\r\n]*/;
|
||||
|
||||
unset_field: uint64 if ( False );
|
||||
unset_field: bytes &eod if ( False );
|
||||
|
||||
on %done { zeek::confirm_protocol(); }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue