diff options
author | Pierre Ducroquet <pducroquet@entrouvert.com> | 2022-02-07 10:48:11 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2022-02-07 14:55:30 +0100 |
commit | 425a27dbd22d12574cedf9b67abc5fd38771fddb (patch) | |
tree | 9e9a6d5f96624fb2233f1ff6a8f9d3e98d35e80d | |
parent | 9b87bb9e1d8db6a95aabab20176638cfebdf38e0 (diff) |
doc: add undefine and redefine keywords
Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r-- | doc/nft.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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 --------------------------------------- |