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
Unknown Object (File)
Jan 16 2024, 9:34 PM
Unknown Object (File)
Jan 11 2024, 10:52 PM
Unknown Object (File)
Dec 20 2023, 6:38 AM
Unknown Object (File)
Nov 13 2023, 1:43 AM
Unknown Object (File)
Oct 20 2023, 9:24 AM
Unknown Object (File)
Oct 9 2023, 12:41 AM
Unknown Object (File)
Sep 9 2023, 1:25 PM
Unknown Object (File)
Sep 6 2023, 8:15 AM
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

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

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.