diff options
Diffstat (limited to 'doc/nft.txt')
-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 --------------------------------------- |