Packet injection and verdict setting fixes. - #2122
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe changes add header checksum recalculation functionality to the Windows kernel extension driver. A new public function Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hello @vlabo I’m sorry for the long delay in reviewing this - I only just noticed your pull request. I only have a few comments:
By the way, I would really appreciate any feedback you might have on these commits: 674ff3f, 2d6fd0a, |
Added a comment for the recalc_header_checksums() call.
Reverted changes to prevent merge conflicts
|
Sorry for the long delay. For some reason I did not get a notification. |
|
Thank you @vlabo ! |
61c3443: Makes the block and drop verdict immutable. This will make windows apply the verdict immediately and not let other layers in the chain override the verdict. Also makes the applying of the verdict immediate in the ALE layer. So applications will get permission denied when trying to create a connection instead of timeout after few seconds.
04f8708: Fixes the packet injection in the packet callout. From what I remember this is only used in packet dns monitoring. Without recalculating the checksums the packet will just get dropped after injection by the network system.
Summary by CodeRabbit