Page MenuHomeFreeBSD

Evaluate packet size after the firewall had its chance in the ip6 fast path
ClosedPublic

Authored by kp on Oct 24 2017, 7:50 PM.
Tags
None
Referenced Files
F108514420: D12779.diff
Sat, Jan 25, 7:37 PM
Unknown Object (File)
Mon, Jan 13, 8:52 PM
Unknown Object (File)
Nov 23 2024, 1:34 PM
Unknown Object (File)
Oct 6 2024, 4:28 PM
Unknown Object (File)
Oct 3 2024, 11:47 PM
Unknown Object (File)
Oct 1 2024, 1:29 PM
Unknown Object (File)
Sep 28 2024, 4:17 AM
Unknown Object (File)
Sep 27 2024, 7:30 AM
Subscribers

Details

Summary

Defer the packet size check until after the firewall has had a look at it. This
means that the firewall now has the opportunity to (re-)fragment an oversized
packet.
This mirrors what the slow path does.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/netinet6/ip6_fastfwd.c
203–205 ↗(On Diff #34297)

This doesn't look like the code from head/. Original code uses PFIL_IN and PFIL_OUT directions.

sys/netinet6/ip6_fastfwd.c
203–205 ↗(On Diff #34297)

Ah, right. I've got another patch I'm working on to add 'PFIL_FWD', but that's not quite ready yet. I'll rebase this so it doesn't include that change.

This revision is now accepted and ready to land.Oct 25 2017, 11:42 AM
This revision was automatically updated to reflect the committed changes.