From 425a27dbd22d12574cedf9b67abc5fd38771fddb Mon Sep 17 00:00:00 2001 From: Pierre Ducroquet Date: Mon, 7 Feb 2022 10:48:11 +0100 Subject: doc: add undefine and redefine keywords Signed-off-by: Florian Westphal --- doc/nft.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/nft.txt') 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 --------------------------------------- -- cgit v1.2.3