Skip to content

Add MySQL protocol layer#2103

Open
seladb wants to merge 15 commits intodevfrom
mysql-protocol
Open

Add MySQL protocol layer#2103
seladb wants to merge 15 commits intodevfrom
mysql-protocol

Conversation

@seladb
Copy link
Copy Markdown
Owner

@seladb seladb commented Apr 13, 2026

This PR adds a new MySQL Protocol to PcapPlusPlus, enabling parsing of MySQL network traffic. This is the protocol used by MySQL clients and servers to communicate over TCP.

This PR only parses the MySQL messages. Creating of messages might be done in the future.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 13, 2026

Codecov Report

❌ Patch coverage is 98.83721% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.10%. Comparing base (718ae23) to head (5190a31).
⚠️ Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
Packet++/src/MySqlLayer.cpp 97.92% 6 Missing ⚠️
Packet++/header/MySqlLayer.h 96.72% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #2103      +/-   ##
==========================================
+ Coverage   83.93%   84.10%   +0.17%     
==========================================
  Files         316      319       +3     
  Lines       57024    57712     +688     
  Branches    11790    12182     +392     
==========================================
+ Hits        47863    48541     +678     
+ Misses       8006     7976      -30     
- Partials     1155     1195      +40     
Flag Coverage Δ
alpine320 76.82% <94.93%> (+0.18%) ⬆️
fedora42 76.39% <95.70%> (+0.18%) ⬆️
macos-14 82.18% <95.88%> (+0.15%) ⬆️
macos-15 82.17% <95.88%> (+0.15%) ⬆️
mingw32 70.97% <89.68%> (+0.22%) ⬆️
mingw64 70.87% <89.68%> (+0.24%) ⬆️
npcap 85.60% <97.45%> (+0.13%) ⬆️
rhel94 76.19% <94.92%> (+0.15%) ⬆️
ubuntu2004 59.87% <72.08%> (+0.10%) ⬆️
ubuntu2004-zstd 59.97% <72.08%> (+0.12%) ⬆️
ubuntu2204 76.23% <94.92%> (+0.21%) ⬆️
ubuntu2204-icpx 59.17% <66.92%> (+0.06%) ⬆️
ubuntu2404 76.48% <94.93%> (+0.15%) ⬆️
ubuntu2404-arm64 76.50% <94.90%> (+0.15%) ⬆️
unittest 84.10% <98.83%> (+0.17%) ⬆️
windows-2022 85.60% <97.45%> (+0.13%) ⬆️
windows-2025 85.62% <97.45%> (+0.13%) ⬆️
winpcap 85.83% <97.45%> (+0.14%) ⬆️
xdp 53.10% <94.92%> (+0.39%) ⬆️

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.

@seladb seladb marked this pull request as ready for review April 14, 2026 08:29
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.

1 participant