Re: [RFC nft] meta: deprecate unqualified meta statements

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

 



On Wed, Jul 27, 2016 at 04:17:33AM +0200, Florian Westphal wrote:
> During NFWS we discussed reducing the number of keywords in nftables.
> 
> Obviously keywords are required for the parser to know what to expect.
> 
> But always requiring the 'meta' keyword would allow us to handle
> iif, oif, iifname etc without defining them in the scanner, i.e. we
> could later use 'meta STRING' and resolve/map the keyword at run time
> based on the meta template pseudo-header.
> 
> Note that this change does not yet reject 'iif eth0', this only makes
> nft always print the 'meta' keyword when listing and updates the test
> cases as required.

The main problem I have hit with this unqualified meta statements is
that I cannot reuse selectors from other statements, eg.

        dup to 1.2.3.4 device eth0

I had to use device here, when oif would have fit more naturally.

Apart from that, I remember that the intention was to get the command
line syntax more compact, that also results in more compact listings.

If the main argument is to reduce the number of keywords, it would be
good to see the patch that helps you reduce them after getting rid of
this.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux