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 Layer Build and Validation for DoIP (Diagnostic over IP) Support #1655

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

raissi-oussema
Copy link

No description provided.

@Dimi1010
Copy link
Collaborator

Dimi1010 commented Dec 8, 2024

As per the contributing guidelines, please retarget the PR to the dev branch instead of the master.

@tigercosmos tigercosmos changed the base branch from master to dev December 8, 2024 09:37
@egecetin egecetin closed this Dec 8, 2024
@egecetin egecetin reopened this Dec 8, 2024
@egecetin egecetin linked an issue Dec 8, 2024 that may be closed by this pull request
@raissi-oussema
Copy link
Author

Observed several issues in the CI pipelines, likely due to missing definitions for htobe16 and other endianness conversion macros. All tests and pre-commit checks are passed in my linux machine.
Adding an import for "EndianPortable.h" in last PR is expected to resolve these problems.

Comment on lines +250 to +253
/**
* Diagnostic over IP protocol (DOIP)
*/
const ProtocolType DOIP = 38;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ID 38 is already taken by DHCPv6 protocol. The next available ID is 58, please add it after GTPv2

@@ -437,7 +437,6 @@ namespace pcpp

HttpResponseStatusCode() = default;

// cppcheck-suppress noExplicitConstructor
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removing this cppcheck-suppress comment?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cppcheck flags this as an incorrect suppression on my local machine. Let me know if you think I should revert it.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is interesting. Which version of CPPcheck are you using?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why update this file?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same thing as my previous comment, I only removed some suppress-checks detected as incorrect

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add one pcap file with all of these packets?

Copy link
Author

@raissi-oussema raissi-oussema Dec 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes sure, I'll revert suppress-checks and add pcap file containig all tested packets in next PR, also try to cover some missing checks based on codecov feedback

Copy link

codecov bot commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 93.01107% with 120 lines in your changes missing coverage. Please review.

Project coverage is 83.54%. Comparing base (3d0717b) to head (dd26c31).
Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
Packet++/src/DoIpLayerData.cpp 85.97% 77 Missing and 8 partials ⚠️
Packet++/src/DoIpLayer.cpp 87.57% 11 Missing and 9 partials ⚠️
Tests/Packet++Test/Tests/DoIpTests.cpp 98.58% 0 Missing and 12 partials ⚠️
Packet++/header/DoIpLayerData.h 76.92% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1655      +/-   ##
==========================================
+ Coverage   83.16%   83.54%   +0.37%     
==========================================
  Files         277      283       +6     
  Lines       48193    50010    +1817     
  Branches     9965    10724     +759     
==========================================
+ Hits        40082    41781    +1699     
- Misses       7216     7297      +81     
- Partials      895      932      +37     
Flag Coverage Δ
alpine320 75.24% <77.90%> (+0.08%) ⬆️
fedora40 75.28% <78.68%> (+0.09%) ⬆️
macos-13 80.89% <87.08%> (+0.23%) ⬆️
macos-14 80.89% <87.08%> (+0.23%) ⬆️
macos-15 80.81% <85.94%> (+0.17%) ⬆️
mingw32 70.55% <60.67%> (-0.37%) ⬇️
mingw64 70.50% <60.74%> (-0.38%) ⬇️
npcap 85.21% <82.38%> (-0.11%) ⬇️
rhel94 75.16% <78.70%> (+0.13%) ⬆️
ubuntu2004 58.32% <50.91%> (-0.32%) ⬇️
ubuntu2004-zstd 58.41% <50.91%> (-0.32%) ⬇️
ubuntu2204 75.05% <78.65%> (+0.11%) ⬆️
ubuntu2204-icpx 61.16% <53.68%> (-0.28%) ⬇️
ubuntu2404 75.28% <77.90%> (+0.05%) ⬆️
unittest 83.54% <93.01%> (+0.37%) ⬆️
windows-2019 85.24% <82.24%> (-0.11%) ⬇️
windows-2022 85.27% <82.38%> (-0.11%) ⬇️
winpcap 85.23% <82.38%> (-0.10%) ⬇️
xdp 51.35% <78.65%> (+0.81%) ⬆️

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.

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.

support of doip (diagnostic over IP protocol)
5 participants