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
F84185436: D39940.id121464.diff
Mon, May 20, 1:43 PM
Unknown Object (File)
Fri, May 3, 10:38 AM
Unknown Object (File)
Feb 28 2024, 4:49 PM
Unknown Object (File)
Feb 22 2024, 3:12 AM
Unknown Object (File)
Jan 8 2024, 3:40 AM
Unknown Object (File)
Dec 22 2023, 11:23 PM
Unknown Object (File)
Dec 10 2023, 8:10 PM
Unknown Object (File)
Sep 24 2023, 2:15 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.