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

output: Add linktype name #12497

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

output: Add linktype name #12497

wants to merge 3 commits into from

Conversation

jlucovsky
Copy link
Contributor

Continuation of #12142

Issue: 6954

This commit adds the linktype name to the output stream. The name is determined from a Rust linktype-to-name function.

Link to ticket: https://redmine.openinfosecfoundation.org/issues/6954

Describe changes:

  • Include the linktype name alongside linktype
  • Update the schema with linktype_name
  • Custom linktype to name function in Rust.

Updates:

  • Rebase

Provide values to any of the below to override the defaults.

SV_BRANCH=OISF/suricata-verify#2023

Issue: 6954

Add Rust based logic that maintains a hash map of link type values and
their associated output names.
Use the hasmap to gather linktype display names.

Issue: 6954
Issue: 6954

This commit adds the linktype name to the output stream. The name is
determined from the pcap utility function pcap_datalink_val_to_name
Copy link

codecov bot commented Jan 28, 2025

Codecov Report

Attention: Patch coverage is 87.87879% with 8 lines in your changes missing coverage. Please review.

Project coverage is 80.58%. Comparing base (a2905ae) to head (7a75a1c).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12497   +/-   ##
=======================================
  Coverage   80.58%   80.58%           
=======================================
  Files         925      927    +2     
  Lines      259313   259365   +52     
=======================================
+ Hits       208955   209000   +45     
- Misses      50358    50365    +7     
Flag Coverage Δ
fuzzcorpus 56.15% <77.27%> (+<0.01%) ⬆️
livemode 19.42% <72.72%> (+0.02%) ⬆️
pcap 44.26% <71.21%> (+0.01%) ⬆️
suricata-verify 63.41% <86.36%> (+0.02%) ⬆️
unittests 58.44% <62.12%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 24401

@victorjulien
Copy link
Member

Passed my QA. Ran this PR with SV PR OISF/suricata-verify#2023. Local pipeline 5219, run 705.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants