Skip to content

Conversation

Dimi1010
Copy link
Collaborator

…ametetarized versions.

- Renamed initConfig to populateConfigDefaults so it only updates the config and does not write to the member variable config.
- Fixed bug where open(XdpDeviceConfigration) overload replaced the configuration before checking if the device is open.
@Dimi1010 Dimi1010 marked this pull request as ready for review October 18, 2025 11:58
@Dimi1010 Dimi1010 requested a review from seladb as a code owner October 18, 2025 11:58
Copy link

codecov bot commented Oct 18, 2025

Codecov Report

❌ Patch coverage is 94.73684% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 83.40%. Comparing base (0ae5389) to head (f5ed520).

Files with missing lines Patch % Lines
Pcap++/src/XdpDevice.cpp 94.73% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1995      +/-   ##
==========================================
- Coverage   83.41%   83.40%   -0.01%     
==========================================
  Files         311      311              
  Lines       55026    55014      -12     
  Branches    11777    11860      +83     
==========================================
- Hits        45900    45886      -14     
+ Misses       7868     7839      -29     
- Partials     1258     1289      +31     
Flag Coverage Δ
alpine320 75.89% <ø> (ø)
fedora42 75.83% <ø> (-0.01%) ⬇️
macos-14 81.50% <ø> (ø)
macos-15 81.51% <ø> (ø)
mingw32 70.55% <ø> (+0.01%) ⬆️
mingw64 70.51% <ø> (+0.09%) ⬆️
npcap ?
rhel94 75.83% <ø> (ø)
ubuntu2004 60.15% <ø> (ø)
ubuntu2004-zstd 60.25% <ø> (ø)
ubuntu2204 75.79% <ø> (-0.01%) ⬇️
ubuntu2204-icpx 60.55% <ø> (ø)
ubuntu2404 75.86% <ø> (-0.03%) ⬇️
ubuntu2404-arm64 75.56% <ø> (-0.01%) ⬇️
unittest 83.40% <94.73%> (-0.01%) ⬇️
windows-2022 85.42% <ø> (+0.16%) ⬆️
windows-2025 85.45% <ø> (+0.11%) ⬆️
winpcap 85.45% <ø> (-0.09%) ⬇️
xdp 53.53% <94.73%> (-0.02%) ⬇️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Call to XdpDevice::open(XdpDeviceConfiguration& config) on already open device replaces the configuration.

1 participant