-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Vxlan tunnel 7717 v2.3 #14369
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
base: main
Are you sure you want to change the base?
Vxlan tunnel 7717 v2.3 #14369
Conversation
Instead of directly accessing the field Will allow PacketTunnelType to hold the precise tunnel type like DECODE_TUNNEL_ERSPANII with a modification of PacketIsTunnelChild
So that we know for a packet which precise type of tunnel it is (like erspan2).
ebpf program does not handle 3 layers of vlan
Ticket: 7717 Allows for instance to process/log ARP packets over VXLAN. That means we need to decode the ethernet layer above vxlan instead of skipping it as part of the vxlan, even if the vxlan decoder still checks the ethernet layer to avoid FPs.
to save memory
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #14369 +/- ##
==========================================
- Coverage 84.19% 84.19% -0.01%
==========================================
Files 1012 1012
Lines 261796 261800 +4
==========================================
- Hits 220414 220412 -2
- Misses 41382 41388 +6
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
Information: QA ran without warnings. Pipeline = 28509 |
| uint8_t ttype; // enum PacketTunnelType | ||
|
|
||
| /* tunnel protocol */ | ||
| uint8_t tproto; // enum DecodeTunnelProto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this ever read?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is read in #14290 follow up commits
We may also want to log it in a flow event
Link to ticket: https://redmine.openinfosecfoundation.org/issues/
https://redmine.openinfosecfoundation.org/issues/7717
Describe changes:
SV_BRANCH=OISF/suricata-verify#2521
Let me know if you want to handle the ebpf maps commit separately
These are the first commits of #14290 with a dedicated ticket
#14020 rebased to get attention and green CI
Note: there are other structures that may benefit from such an optimization :
git grep "enum " src/*.h | grep ';' | grep -v ');'For example in
struct SSLState_: