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
F94060769: D39940.diff
Sun, Sep 15, 6:29 AM
Unknown Object (File)
Mon, Sep 9, 6:40 PM
Unknown Object (File)
Thu, Aug 29, 10:32 PM
Unknown Object (File)
Thu, Aug 29, 9:39 PM
Unknown Object (File)
Aug 12 2024, 10:16 AM
Unknown Object (File)
Aug 1 2024, 7:51 PM
Unknown Object (File)
Jul 31 2024, 10:06 AM
Unknown Object (File)
Jul 11 2024, 6:50 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.