Skip to content

Conversation

@SiskaPavel
Copy link
Collaborator

@SiskaPavel SiskaPavel commented Feb 6, 2025

Ensure correct packet parsing for input modules like dpdk, dpdk-ring, and nfb when compiled with --with-pcap. Previously, the parser relied on opt->datalink, which these inputs do not set, leading to incorrect layer detection. Now, it correctly defaults to Ethernet when necessary.

Solve #251

@SiskaPavel SiskaPavel force-pushed the pcap-compilation-parse-layer branch from 49b9e1a to e93f43e Compare February 6, 2025 14:47
@SiskaPavel SiskaPavel requested a review from Lukas955 February 6, 2025 14:48
@codecov-commenter
Copy link

codecov-commenter commented Feb 6, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 40.79%. Comparing base (fee9b26) to head (a8c08f7).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
input/parser.cpp 0.00% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #256      +/-   ##
==========================================
+ Coverage   40.78%   40.79%   +0.01%     
==========================================
  Files         104      104              
  Lines       10124    10126       +2     
  Branches     1494     1494              
==========================================
+ Hits         4129     4131       +2     
  Misses       5130     5130              
  Partials      865      865              
Flag Coverage Δ
tests 40.79% <0.00%> (+0.01%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Ensure correct packet parsing for input modules like dpdk, dpdk-ring, and nfb when compiled with --with-pcap.
Previously, the parser relied on opt->datalink, which these inputs do not set, leading to incorrect layer detection.
Now, it correctly defaults to Ethernet when necessary.
@SiskaPavel SiskaPavel force-pushed the pcap-compilation-parse-layer branch from 1b36e27 to a8c08f7 Compare February 6, 2025 15:29
@SiskaPavel SiskaPavel merged commit 3a7d52d into master Feb 6, 2025
5 checks passed
@SiskaPavel SiskaPavel deleted the pcap-compilation-parse-layer branch February 6, 2025 15:43
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.

4 participants