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)
Fri, Apr 12, 12:06 AM
Unknown Object (File)
Tue, Apr 9, 10:31 PM
Unknown Object (File)
Tue, Apr 9, 10:15 PM
Unknown Object (File)
Sun, Apr 7, 10:04 AM
Unknown Object (File)
Fri, Mar 29, 2:25 AM
Unknown Object (File)
Dec 22 2023, 9:40 PM
Unknown Object (File)
Nov 10 2023, 12:00 PM
Unknown Object (File)
Nov 4 2023, 4:33 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.