Page MenuHomeFreeBSD

pf: Fix duplicate storage of direction
ClosedPublic

Authored by vegeta_tuxpowered.net on Jul 12 2023, 4:34 PM.
Tags
None
Referenced Files
F87444680: D41008.id124577.diff
Wed, Jul 3, 3:52 AM
F87438722: D41008.id124580.diff
Wed, Jul 3, 1:42 AM
Unknown Object (File)
Mon, Jul 1, 4:33 AM
Unknown Object (File)
Mon, Jun 3, 6:34 AM
Unknown Object (File)
Dec 20 2023, 7:34 AM
Unknown Object (File)
Dec 10 2023, 8:16 PM
Unknown Object (File)
Dec 9 2023, 3:31 AM
Unknown Object (File)
Sep 12 2023, 7:10 PM

Details

Summary

The variable storing the direction of a processed packet is passed around to many functions. Most of those functions already have a pointer to struct pf_pdesc which also contains the direction. By using the one in struct pf_pdesc we can reduce the amount of arguments passed around.

Sponsored by: InnGames GmbH

Diff Detail

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

Event Timeline

vegeta_tuxpowered.net edited the summary of this revision. (Show Details)

Looks sensible at first glance. I'm test-building and running the tests just in case, but I expect you've done that already.

This revision was not accepted when it landed; it landed in state Needs Review.Jul 12 2023, 6:07 PM
This revision was automatically updated to reflect the committed changes.