-
Notifications
You must be signed in to change notification settings - Fork 896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ndpi_detection_process_packet is not using ndpi_id_struct anymore. #1452
Comments
I am not sure if I am getting your question right. Anyway:
I hope this clarifies your question |
So, my question is. If we remove ndpi_id_struct completely we do not need to do anything to preserve old behavior? It will be automatic based on new LRU cache approach? |
@vitalivanov, ok for points 1 and 2; sorry but I missed the fact that you really used them.
No. The idea was that these old protocols (if still used) are probably changed in the last years (i.e. using encryption, for example) and therefore the Could this change trigger some regressions? Possibly. Unfortunately nDPI doesn't have any traces of these protocols really triggering this feature, so I can't say for sure. As said in #1279, the only protocols affected by this change should be: DirectConnect, IRC, Gnutella and Jabber. If you can share the pcaps failing with current code, I can take a look at them. |
@vitalivanov, any news? |
@IvanNardi, any news? |
@vitalivanov :sorry for the delay. Could you point to any specific session with unexpected/wrong/changed classification, please? |
Thanks @IvanNardi When I migrate to ndpi 4.2 I see now that ndpiReader can not provide output in json format as it did it before:
new library and ndpiReader can not do that because of:
@lucaderi how do you guys decide that it is unused??? Can we have that back? |
@lucaderi i see some serialization code... is there anything that can be reused to get similar stats as before? |
@lucaderi @IvanNardi All the details inside... |
thanks. |
In recent ndpi library ndpi_id_struct is removed. Previously we used:
struct ndpi_id_struct *ndpi_src = NULL;
struct ndpi_id_struct *ndpi_dst = NULL;
...
ndpi_detection_process_packet(ndpi_struct, &item->ndpi_flow, ip, iplen, ms, ndpi_src, ndpi_dst);
to detect packet in flow and combine flows from and to client and server.
Now it's changed to:
ndpi_detection_process_packet(ndpi_struct, &item->ndpi_flow, ip, iplen, ms);
How to combine flows now?
The text was updated successfully, but these errors were encountered: