Re: Typo on 'Sets' wiki page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 09 Oct 2023 17:23:03 +1300
Alasdair Muckart <alasdairmuckart@xxxxxxxxxxxxxxx> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> The wiki page at https://wiki.nftables.org/wiki-nftables/index.php/Sets seems
> to have an error.
> 
> Under the 'nftables.conf syntax' heading it says
> "When working with nftables.conf, you can define sets in a number of ways. You
> can then reference those sets later on using $VARIABLE_NAME notation."
> 
> Shouldn't that be an @, not a $?

It shouldn't be because the examples under that particular heading demonstrate how variables can be used to express the definition of an anonymous set. They are effective at the point that they are incorporated by a rule. All variables require the use of the $ sigil to be referenced, which is somewhat akin to parameter expansion in the shell. The @ sigil is used for matching sets that are formally defined and named by the use of the set keyword.

-- 
Kerin Millar



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux