Closed jiamo closed 1 year ago
I may found the issue . The union info
and finished
in nDPId_flow caused the problem. May be it is a good idea to make jsonize_flow_event
and jsonize_flow_detect_event
to one function, and info
and finished
to one? Never mind.
Documentation needed here! Thanks for pointing that out!
In my case, I want to one event of one flow. I try to do such thing
first try to using
nDPId_flow
insteadnDPId_flow_extended
Then add the
ndpi_dpi2json
injsonize_flow_event
It will got segment fault. Even I comment
free_detection_data
. It still got segment. I don't want to add suchif (event == FLOW_EVENT_END && flow->info.detection_completed == 1)
line. Because I want theend
event can contains the DPI info.I am wondering the data struct need by
ndpi_dpi2json
was freed by which function? freed by nDPId or freed by nDPI ? What I want to achieve is: When the segment solved, I will do not serialize other event. Do you have some suggestion?