fw4.uc: introduce DEPRECATED flag
authorStijn Tintel <stijn@linux-ipv6.be>
Thu, 25 Nov 2021 04:01:51 +0000 (06:01 +0200)
committerStijn Tintel <stijn@linux-ipv6.be>
Thu, 6 Jan 2022 12:51:44 +0000 (14:51 +0200)
commit334a127df426286101f90c4f9ec79f8b64d59f14
tree74cf26bfe99a18c02dbac090f27a159f77eb1f2d
parent31c7550efcb8d1f6014202a257fc1b9e3ab5fc9e
fw4.uc: introduce DEPRECATED flag

When a section contains unknown options, the parse_options function will
return false, and based on that the entire section might be skipped.
For example, rules containing a _name option will be skipped. As this
option used to be added by LuCI in the past, we should not skip those
rules, as it might break existing configs for many users.

Add a new DEPRECATED flag to handle such options.

Suggested-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Reviewed-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/ucode/fw4.uc