Page MenuHomeFreeBSD

pf: Improve source node error handling
ClosedPublic

Authored by vegeta_tuxpowered.net on May 2 2023, 8:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 2:59 AM
Unknown Object (File)
Thu, Nov 7, 5:23 PM
Unknown Object (File)
Fri, Oct 25, 7:44 AM
Unknown Object (File)
Sat, Oct 19, 11:43 AM
Unknown Object (File)
Oct 9 2024, 8:11 PM
Unknown Object (File)
Oct 4 2024, 10:09 PM
Unknown Object (File)
Oct 4 2024, 10:02 PM
Unknown Object (File)
Sep 28 2024, 3:21 AM

Details

Summary

Functions manipulating source nodes can fail due to various reasons like memory allocation errors, hitting configured limits or lack of redirection targets. Ensure those errors are properly caught and propagated in the code. Increase the error counters not only when parsing the main ruleset but the NAT ruleset too.

Cherry-picked from development of D39880
Sponsored by: InnoGames GmbH

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.May 3 2023, 9:59 AM
This revision was automatically updated to reflect the committed changes.