Skip to content

Conversation

@catenacyber
Copy link
Contributor

@catenacyber catenacyber commented Jan 8, 2026

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

Describe changes:

#14555 with mut local storage

It does not return anything.
The only known implementation is in dns where it does not return.
And the C code does not bother to check a return value anyways.
just use an u32 out of the box.
Will make bindgen like easier
Will make bindgen life easier

As the fn prototype should not have istate: &mut u64
but a *mut AppLayerGetTxIterState which is an union with a u64
Will make bindgen life easier

As the fn prototype should not have istate: &mut u64
but a *mut AppLayerGetTxIterState which is an union with a u64
As will be needed such as AppLayerTxData
@catenacyber catenacyber force-pushed the bindgen-more-7762-v8.3.1 branch from d190072 to f508e02 Compare January 8, 2026 09:51
@codecov
Copy link

codecov bot commented Jan 8, 2026

Codecov Report

❌ Patch coverage is 76.19048% with 30 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.16%. Comparing base (1d7b0d9) to head (f508e02).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14579      +/-   ##
==========================================
- Coverage   82.16%   82.16%   -0.01%     
==========================================
  Files        1013     1013              
  Lines      262387   262345      -42     
==========================================
- Hits       215598   215544      -54     
- Misses      46789    46801      +12     
Flag Coverage Δ
fuzzcorpus 60.35% <74.60%> (+0.01%) ⬆️
livemode 18.75% <4.76%> (-0.10%) ⬇️
pcap 44.66% <65.87%> (+<0.01%) ⬆️
suricata-verify 65.04% <96.00%> (-0.02%) ⬇️
unittests 59.30% <28.00%> (+<0.01%) ⬆️

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

Information: QA ran without warnings.

Pipeline = 29020

1 similar comment
@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline = 29020

@catenacyber
Copy link
Contributor Author

Next steps

  • rebase after release to get green CI
  • split last commit of Bindgen more 7762 v8.2 #14556 by renaming/prefixing AppLayerGetTxIterState as SCAppLayerGetTxIterState so that it gets bindgen'd and fix GetTxIteratorFn prototype...

--disable-header-comment \
--default-enum-style rust \
--with-derive-default \
--with-derive-eq \
Copy link
Member

Choose a reason for hiding this comment

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

But we don't need it yet right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, we need it with last commit of #14556

Copy link
Member

Choose a reason for hiding this comment

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

Just looks out of place in this PR where it has no usage.

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