Page MenuHomeFreeBSD

Add ability to show ipfw rules, that were added using new rule format (without generic rule body, just rule options)
ClosedPublic

Authored by ae on Oct 1 2018, 3:44 PM.
Tags
None
Referenced Files
F108923887: D17373.diff
Wed, Jan 29, 3:11 PM
Unknown Object (File)
Tue, Jan 28, 6:08 AM
Unknown Object (File)
Sat, Jan 25, 8:02 PM
Unknown Object (File)
Sat, Jan 18, 10:03 PM
Unknown Object (File)
Sun, Jan 12, 9:03 AM
Unknown Object (File)
Oct 30 2024, 1:00 AM
Unknown Object (File)
Oct 23 2024, 2:59 AM
Unknown Object (File)
Oct 18 2024, 8:08 PM
Subscribers

Details

Summary

ipfw(8) command line parser accepts rule format, that contains only rule options in the body. But ipfw(8) opcodes parser expects only old format, when rule body contains all components of "proto from src to dst". This patch adds flag IPFW_RULE_JUSTOPTS, that is passed to the kernel, and back. So, ipfw(8) can determine what rule format was used and correctly show the rule.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 19893
Build 19416: arc lint + arc unit

Event Timeline

This patch helps with all my convoluted rules :-)

This revision was not accepted when it landed; it landed in state Needs Review.Oct 21 2018, 3:11 PM
This revision was automatically updated to reflect the committed changes.