mirror of
https://github.com/optim-enterprises-bv/nDPId.git
synced 2025-11-03 11:47:49 +00:00
Build JSMN with support for parent links.
* nDPIsrvd.h: iterate over subtokens * nDPIsrvd-captured: select/ unselect risky flows to capture Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
@@ -115,6 +115,9 @@ int main(void)
|
||||
{
|
||||
if (i % 2 == 1)
|
||||
{
|
||||
#ifdef JSMN_PARENT_LINKS
|
||||
printf("[%d][%d]", i, tokens[i].parent);
|
||||
#endif
|
||||
printf("[%.*s : ", tokens[i].end - tokens[i].start, (char *)(buf + json_start) + tokens[i].start);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user