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)
Mon, Mar 17, 1:38 AM
Unknown Object (File)
Mon, Mar 3, 10:30 PM
Unknown Object (File)
Wed, Feb 26, 12:45 PM
Unknown Object (File)
Wed, Feb 26, 9:33 AM
Unknown Object (File)
Mon, Feb 24, 6:56 AM
Unknown Object (File)
Feb 9 2025, 3:22 AM
Unknown Object (File)
Feb 1 2025, 5:20 AM
Unknown Object (File)
Jan 17 2025, 12:08 PM

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.