Displaying 1 result from an estimated 1 matches for "nft_jansson_expr_parse".
2015 Jan 05
0
[Bug 979] expr json structure
...json output format is like you say:
{
"type": "payload",
"dreg": 1,
"offset": 9,
"len": 1,
"base": "network"
},
If you look the code in libnftnl, in the file src/jansson.c. You can find the
function "nft_jansson_expr_parse". With this function, we parse the expressions
in json.
We use a node like "type" because right now, we have a lot of different
expressions and in the future we want add more. Using the node type, we only
have to test and parse if this node exist and with the value we can create the...