--- doc/nft.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/nft.txt b/doc/nft.txt index 7240deaa..f7a53ac9 100644 --- a/doc/nft.txt +++ b/doc/nft.txt @@ -170,17 +170,23 @@ SYMBOLIC VARIABLES ~~~~~~~~~~~~~~~~~~ [verse] *define* 'variable' *=* 'expr' +*undefine* 'variable' +*redefine* 'variable' *=* 'expr' *$variable* Symbolic variables can be defined using the *define* statement. Variable references are expressions and can be used to initialize other variables. The scope of a definition is the current block and all blocks contained within. +Symbolic variables can be undefined using the *undefine* statement, and modified +using the *redefine* statement. .Using symbolic variables --------------------------------------- define int_if1 = eth0 define int_if2 = eth1 define int_ifs = { $int_if1, $int_if2 } +redefine int_if2 = wlan0 +undefine int_if2 filter input iif $int_ifs accept --------------------------------------- -- 2.34.1 --nextPart2760383.sXSQ4k5BsB-- --nextPart5958965.iR5QGJfuPA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEbcO4NNOnlypyH7hOck7KPqdNerwFAmIA+JEACgkQck7KPqdN eryUnwf/co5F3O+CrdT7lFdhfODEqTuiBo8n896hxWGSe00C9KAJNJ9iogBMIvx4 OtmBZn8PDBbZbODBlv7iqnje5aLqAigSGFKb17fj+QAaR8dK1Idcl7RS0hYrHjw6 mEH24mg6qPIJY7JRH/HaN0LIqJ/ZHRS4Ny4oK/zlnBfV2Byha5BJRsGuLuLWNyKk tu+J3tEhBKtyuM7s48TpI8RiLa2D7v98fPuuGSwv30yW3d3mL1laGAX8EPbZHSmV jscSEfHYtL4Ldtu8rSjjUTFCuYT6HGAYPDzXt/33YvGdkz3gR8QGtBVri1x8TAan F1O8ZzHx7qMHRByqWgFET31HvUHIZA== =/0KS -----END PGP SIGNATURE----- --nextPart5958965.iR5QGJfuPA--