Page MenuHomeFreeBSD

Implement "ipfw fwd" for incoming IPv4 packets on fast forwarding path
ClosedPublic

Authored by eugen_grosbein.net on Sep 5 2018, 5:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 23, 3:38 AM
Unknown Object (File)
Thu, Oct 23, 3:38 AM
Unknown Object (File)
Thu, Oct 23, 3:38 AM
Unknown Object (File)
Thu, Oct 23, 3:38 AM
Unknown Object (File)
Wed, Oct 22, 7:41 PM
Unknown Object (File)
Tue, Oct 21, 12:46 AM
Unknown Object (File)
Sep 6 2025, 9:10 PM
Unknown Object (File)
Sep 6 2025, 4:40 PM
Subscribers

Details

Summary

Currently, "ipfw fwd" does not work for incoming IPv4 packets when ip_tryforward chooses fast forwarding path, but it works for IPv6 and for both on old slow path.

This change fixes this adding implementation similar to IPv6 code.

Test Plan

Diff Detail

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

Event Timeline

ae added inline comments.
sys/netinet/ip_fastfwd.c
297 ↗(On Diff #47687)

s/ipfilter/pfil(9)/

300 ↗(On Diff #47687)

extra parentheses

This revision is now accepted and ready to land.Sep 5 2018, 10:45 AM
This revision was automatically updated to reflect the committed changes.