Page MenuHomeFreeBSD

pf: consolidate pf function parameters
ClosedPublic

Authored by kp on Oct 4 2024, 12:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 18, 5:05 AM
Unknown Object (File)
Tue, Jan 7, 3:28 AM
Unknown Object (File)
Dec 8 2024, 11:01 AM
Unknown Object (File)
Dec 4 2024, 2:50 AM
Unknown Object (File)
Dec 4 2024, 2:35 AM
Unknown Object (File)
Nov 28 2024, 11:47 PM
Unknown Object (File)
Nov 28 2024, 10:15 PM
Unknown Object (File)
Nov 14 2024, 5:49 PM

Details

Summary

Move off and hdrlen into pdesc
and change their type from int to u_int32_t. Do not pass struct
tcphdr *th and sa_family_t af, it is in pd anyway. Do not use af
and pd->af intermixed, the latter makes clear where it comes from.
Do not calculate the packet length again if pd already has it. Use
pd2.off instead of off2.
go go go go don't stop henning@ mpf@

Obtained from: OpenBSD, bluhm <bluhm@openbsd.org>, 110e53770d
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

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