Re: [PATCH nftables 3/3] src: add comment support for objects

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

 



On Wed, Sep 02, 2020 at 11:12:41AM +0200, Jose M. Guisado Gomez wrote:
> Enables specifying an optional comment when declaring named objects. The
> comment is to be specified inside the object's block ({} block)
> 
> Relies on libnftnl exporting nftnl_obj_get_data and kernel space support
> to store the comments.
> 
> For consistency, this patch makes the comment be printed first when
> listing objects.
> 
> Adds a testcase importing all commented named objects except for secmark,
> although it's supported.
> 
> Example: Adding a quota with a comment
> 
> > add table inet filter
> > nft add quota inet filter q { over 1200 bytes \; comment "test_comment"\; }
> > list ruleset
> 
> table inet filter {
> 	quota q {
> 		comment "test_comment"
> 		over 1200 bytes
> 	}
> }

Also applied, thanks.



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux