Re: Accounting objects support in nft

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

 



On 12.01, ana@xxxxxxxxx wrote:
> From: Ana Rey Botello <ana@xxxxxxxxx>
> 
> Hi,
> 
> With this patchset, we add accounting objects support to let us
> manipulate extended accounting objects.
> 
> Example of use in nft:
> 
>  # nft add acct ip filter http-traffic
>  # nft add acct ip filter https-traffic
> 
>  # nft add rule ip filter output tcp dport 80 acct http-traffic
>  # nft add rule ip filter output tcp dport 443 acct https-traffic

I'm wondering whether we really should use a new keyword for this
or do something similar to sets where we have named and anonymous
variants.

An alternative would be:

nft add counter ip filter http-traffic
nft filter output tcp dport 80 counter http-traffic

It is after all just a named counter, so it seems clearer to me to
reuse the keyword.
--
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