Page MenuHomeFreeBSD

Change the syntax of ipfw named states
AbandonedPublic

Authored by ae on Mar 9 2017, 8:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 16, 4:31 AM
Unknown Object (File)
Tue, Oct 14, 6:36 PM
Unknown Object (File)
Fri, Sep 26, 11:52 AM
Unknown Object (File)
Sep 9 2025, 12:54 AM
Unknown Object (File)
Aug 25 2025, 11:44 AM
Unknown Object (File)
Aug 25 2025, 5:08 AM
Unknown Object (File)
Aug 24 2025, 2:02 AM
Unknown Object (File)
Aug 8 2025, 2:08 PM
Subscribers

Details

Reviewers
julian
Group Reviewers
manpages
Summary

I'm going to merge ipfw changes from head/ to stable/11 and thus I decided to change the syntax that we use for named states.
To avoid ambiguity I prefixed the state name with a colon.

Diff Detail

Event Timeline

we are going to run out of available tricks for this in ipfw at some stage.. Can we re-use () like used in table? or make the : part of the keep-state.. so that "keep_state: state1" or keep_state(state1) vs "keep_state :state1"

we are going to run out of available tricks for this in ipfw at some stage.. Can we re-use () like used in table? or make the : part of the keep-state.. so that "keep_state: state1" or keep_state(state1) vs "keep_state :state1"

In general we have no preference about the syntax. But inventing the similar syntax for "limit" rules seems not so obvious. Also I don't see how such trick can prevent to use it later for another opcode.

Julian, if you have no objection I'll commit it tomorrow.

Committed in r315305.