Skip to content

Conversation

@poodle-amazon
Copy link

Issue: 7986

Make sure these boxes are checked accordingly before submitting your Pull Request -- thank you.

Contribution style:

Our Contribution agreements:

Changes (if applicable):

Link to ticket: https://redmine.openinfosecfoundation.org/issues/7986

Describe changes:

Provide values to any of the below to override the defaults.

  • To use a Suricata-Verify or Suricata-Update pull request,
    link to the pull request in the respective _BRANCH variable.
  • Leave unused overrides blank or remove.

SV_REPO=
SV_BRANCH=OISF/suricata-verify#2748
SU_REPO=
SU_BRANCH=

@github-actions
Copy link

NOTE: This PR may contain new authors.

Copy link
Member

@victorjulien victorjulien left a comment

Choose a reason for hiding this comment

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

Just a few quick comments as I checked if I could enable the CI

uint16_t proto = SCNtohs(ethh->eth_type);
switch (proto) {
case ETHERNET_TYPE_IP:
L2TP_CHECK_INNER_TUNNEL(DECODE_TUNNEL_IPV4)
Copy link
Member

Choose a reason for hiding this comment

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

missing ;

eth_found = true; \
} \
break; \
} while (0);
Copy link
Member

Choose a reason for hiding this comment

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

would like to drop the ; here and force the caller to set it

@codecov
Copy link

codecov bot commented Nov 13, 2025

Codecov Report

❌ Patch coverage is 91.71271% with 30 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.17%. Comparing base (b21c93d) to head (245c382).

Additional details and impacted files
@@           Coverage Diff            @@
##             main   #14325    +/-   ##
========================================
  Coverage   84.16%   84.17%            
========================================
  Files        1012     1014     +2     
  Lines      261869   262231   +362     
========================================
+ Hits       220405   220721   +316     
- Misses      41464    41510    +46     
Flag Coverage Δ
fuzzcorpus 63.29% <47.05%> (-0.03%) ⬇️
livemode 18.75% <21.32%> (-0.02%) ⬇️
pcap 44.68% <72.05%> (+<0.01%) ⬆️
suricata-verify 64.93% <73.33%> (+0.01%) ⬆️
unittests 59.27% <85.31%> (+0.04%) ⬆️

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

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

@suricata-qa
Copy link

WARNING:

field baseline test %
SURI_TLPR1_stats_chk
.decoder.invalid 123 4308 3502.44%
IPS_AFP_stats_chk
.decoder.invalid 0 3692 -
TREX_GENERIC_stats_chk
.decoder.invalid 0 8338 -

Pipeline = 28461

@poodle-amazon
Copy link
Author

I've made it even more less strict to stop the excessive number invalid packets on QA and added a SV test for this (decode-l2tp-v3-15).

@github-actions
Copy link

NOTE: This PR may contain new authors.

@victorjulien
Copy link
Member

I've made it even more less strict to stop the excessive number invalid packets on QA and added a SV test for this (decode-l2tp-v3-15).

Would have to check the pcaps, but I suspect we need to opposite? If we detect other traffic as l2tp initially, but then it fails to decode the encapsulated protocol. That would trigger lots of invalid packets potentially. This has been our experience with vxlan as well.

With Suricon next week it will probably a while before we can dig up pcaps.

@ct0br0 can we share any of the pcaps?

@suricata-qa
Copy link

WARNING:

field baseline test %
SURI_TLPR1_stats_chk
.decoder.invalid 123 173 140.65%

Pipeline = 28466

@victorjulien
Copy link
Member

This result is a lot better already. Lets see if we can extract the pcap and review if they can be shared or that we can use them to assist in some other way.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants