script_opt: Use emit_builtin_error() for Lookup-Conn

Still create a separate baseline file because ZAM doesn't provide
detailed location information.

Patch for ZBI.op provided by @vpax

(cherry picked from commit 3b4b379950)
This commit is contained in:
Arne Welzel 2025-01-23 09:34:12 +01:00 committed by Tim Wojtulewicz
parent b6e6fc342d
commit 91c8ca8401
4 changed files with 28 additions and 2 deletions

19
CHANGES
View file

@ -1,3 +1,22 @@
7.1.0-14 | 2025-03-18 16:29:36 -0700
* script_opt: Use emit_builtin_error() for Lookup-Conn (Arne Welzel, Corelight)
Still create a separate baseline file because ZAM doesn't provide
detailed location information.
Patch for ZBI.op provided by @vpax
(cherry picked from commit 3b4b379950e119fd2299f71f199b53da5af13c7d)
* Update zeek-testing commit hash (Tim Wojtulewicz, Corelight)
* CI: Force rebuild of tumbleweed docker image (Tim Wojtulewicz, Corelight)
* CI: bump FreeBSD 14 to 14.2, which came out in Dec'24 (Christian Kreibich, Corelight)
(cherry picked from commit b77ef57dffe0740e4a7eeef2f4780b814d1469b0)
7.1.0-10 | 2025-03-18 13:59:06 -0700 7.1.0-10 | 2025-03-18 13:59:06 -0700
* Fix return types in docs for double_to_count and double_to_int (Tim Wojtulewicz, Corelight) * Fix return types in docs for double_to_count and double_to_int (Tim Wojtulewicz, Corelight)

View file

@ -1 +1 @@
7.1.0-10 7.1.0-14

View file

@ -130,7 +130,7 @@ eval auto cid = $1;
res = conn->GetVal(); res = conn->GetVal();
else else
{ {
ERROR2("connection ID not a known connection", cid); emit_builtin_error("connection ID not a known connection", cid);
res = build_dummy_conn_record(); res = build_dummy_conn_record();
} }
AssignTarget($$, ZVal(res, res->GetType())); AssignTarget($$, ZVal(res, res->GetType()));

View file

@ -0,0 +1,7 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
1362692526.869344 error: invalid connection ID record encountered: the proto field has the "unknown" 65535 value. Did you forget to set it?
1362692526.869344 error in <no location>: connection ID not a known connection ([orig_h=141.142.228.5, orig_p=59856/tcp, resp_h=192.150.187.43, resp_p=80/tcp, proto=65535])
1362692526.869344 error: invalid connection ID record encountered: the proto field has the "unknown" 65535 value. Did you forget to set it?
1362692526.869344 error: invalid connection ID record encountered
1362692526.869344 error in <no location>: connection ID not a known connection ([orig_h=<uninitialized>, orig_p=<uninitialized>, resp_h=<uninitialized>, resp_p=<uninitialized>, proto=65535])
1362692526.869344 error: invalid connection ID record encountered