diff --git a/src/parse.y b/src/parse.y index eab148df6f..91eb6d72c9 100644 --- a/src/parse.y +++ b/src/parse.y @@ -1936,9 +1936,13 @@ event: if ( id->IsDeprecated() ) reporter->Warning("%s", id->GetDeprecationWarning().c_str()); - } - $$ = new EventExpr($1, {AdoptRef{}, $3}); + $$ = new EventExpr(id->Name(), {AdoptRef{}, $3}); + } + else + { + $$ = new EventExpr($1, {AdoptRef{}, $3}); + } } ; diff --git a/testing/btest/Baseline/scripts.policy.misc.capture-loss/capture_loss.log b/testing/btest/Baseline/scripts.policy.misc.capture-loss/capture_loss.log index 60e356e68e..593839232f 100644 --- a/testing/btest/Baseline/scripts.policy.misc.capture-loss/capture_loss.log +++ b/testing/btest/Baseline/scripts.policy.misc.capture-loss/capture_loss.log @@ -8,4 +8,5 @@ #fields ts ts_delta peer gaps acks percent_lost #types time interval string count count double XXXXXXXXXX.XXXXXX 0.000000 zeek 0 0 0.0 +XXXXXXXXXX.XXXXXX 0.000000 zeek 0 0 0.0 #close XXXX-XX-XX-XX-XX-XX diff --git a/testing/btest/Baseline/scripts.policy.misc.capture-loss/notice.log b/testing/btest/Baseline/scripts.policy.misc.capture-loss/notice.log index 4679b46cce..e8461773a4 100644 --- a/testing/btest/Baseline/scripts.policy.misc.capture-loss/notice.log +++ b/testing/btest/Baseline/scripts.policy.misc.capture-loss/notice.log @@ -8,4 +8,5 @@ #fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p fuid file_mime_type file_desc proto note msg sub src dst p n peer_descr actions email_dest suppress_for remote_location.country_code remote_location.region remote_location.city remote_location.latitude remote_location.longitude #types time string addr port addr port string string string enum enum string string addr addr port count string set[enum] set[string] interval string string string double double XXXXXXXXXX.XXXXXX - - - - - - - - - CaptureLoss::Too_Little_Traffic Only observed 0 TCP ACKs and was expecting at least 1. - - - - - - Notice::ACTION_LOG (empty) 3600.000000 - - - - - +XXXXXXXXXX.XXXXXX - - - - - - - - - CaptureLoss::Too_Little_Traffic Only observed 0 TCP ACKs and was expecting at least 1. - - - - - - Notice::ACTION_LOG (empty) 3600.000000 - - - - - #close XXXX-XX-XX-XX-XX-XX