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)
May 23 2026, 6:08 PM
Unknown Object (File)
May 19 2026, 11:07 PM
Unknown Object (File)
May 14 2026, 3:36 PM
Unknown Object (File)
May 14 2026, 6:49 AM
Unknown Object (File)
May 11 2026, 12:43 PM
Unknown Object (File)
May 11 2026, 5:19 AM
Unknown Object (File)
May 11 2026, 3:10 AM
Unknown Object (File)
May 11 2026, 3:10 AM
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.