Re: [nft PATCH] parser_json: Rewrite echo support

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

 



On Tue, Apr 02, 2019 at 03:34:43PM +0200, Phil Sutter wrote:
> Instead of guessing which object to update with retrieved handle,
> introduce a list containing struct cmd <-> json_t associations. Upon
> batch commit, allocated cmd objects are assigned a unique netlink
> sequence number. Monitor events contain that number as well, so they may
> be associated to the cmd object which triggered them. Using
> json_cmd_assoc list the event may in turn be associated to the input's
> JSON object which should receive the handle value.
> 
> This also fixes incorrect behaviour if JSON input contained "insert"
> commands.

Applied, thanks Phil!



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

  Powered by Linux