Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BiFs to retrieve numeric ID for a given connection and analyzer #3752

Merged
merged 3 commits into from
May 31, 2024

Conversation

ckreibich
Copy link
Member

@ckreibich ckreibich commented May 24, 2024

See NEWS addition for the details. This came out of a support thread on Slack, where I realized that as far as I could discern there's not currently a way to alter analyzer activation via disable_analyzer() at this level.

For consistency I've changed the reporter error function called in disable_analyzer() since it provides better context.

@ckreibich ckreibich force-pushed the topic/christian/analyzer-lookup-bifs branch 2 times, most recently from 96579b1 to 455e6a2 Compare May 24, 2024 19:55
NEWS Outdated Show resolved Hide resolved
This adds a new lookup_connection_analyzer_id() BiF to find a given connection's
numeric identifier for a given protocol analyzer (as defined by the underlying
Analyzer::id_counter).

This enables users to call disable_analyzer(), which requires a numeric analyzer
ID, outside of analyzer_confirmation_info and analyzer_violation_info events
handlers.
This replaces generic reporter->Error() calls with the builtin-specific variety,
which gives better context in the resulting error messages (such as the script
and line causing it).

Includes corresponding baseline update in one affected btest.
@ckreibich ckreibich force-pushed the topic/christian/analyzer-lookup-bifs branch from 455e6a2 to a599fe0 Compare May 30, 2024 23:41
@ckreibich ckreibich merged commit 1d4a169 into master May 31, 2024
30 checks passed
@ckreibich ckreibich deleted the topic/christian/analyzer-lookup-bifs branch May 31, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants