netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Proposing to add a structure to UserData
@ 2020-02-13 14:12 sbezverk
  2020-02-17 14:40 ` Florian Westphal
  0 siblings, 1 reply; 4+ messages in thread
From: sbezverk @ 2020-02-13 14:12 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel

Hello Pablo,

I would like to propose to add some structure to UserData. Currently nft tool uses UserData to carry comments and it prints out whatever is stored in it without much of processing. Since UserData is the only available mechanism to store some metadata for a rule, if it is used, then comments in nft cli get totally screwed up.

What do you think about to add a little structure to userdata in order to preserve nft comments and at the same time allow developers to use UserData for other things.

If we could add attributes to UserData indicating type NFT_USERDATA_COMMENT with length, then we could preserve nft comments and at the same time allow to use UserData for other things.

What do you think?

Thank you
Serguei

   



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-17 15:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-13 14:12 Proposing to add a structure to UserData sbezverk
2020-02-17 14:40 ` Florian Westphal
2020-02-17 15:42   ` sbezverk
2020-02-17 15:48     ` Phil Sutter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).