diff options
author | Luca <deri@ntop.org> | 2019-06-18 17:36:39 +0200 |
---|---|---|
committer | Luca <deri@ntop.org> | 2019-06-18 17:36:39 +0200 |
commit | 5f26149938e1465d75159b71ddbbdb8673ffa508 (patch) | |
tree | e9ffb9f80e48d3d7af16db45b9298b74c0940319 /example/ndpi_util.c | |
parent | 41b75485eba80485eb3b5b8ae6f7f90d5f44e47e (diff) |
Added DHCP fingerpring handling
Diffstat (limited to 'example/ndpi_util.c')
-rw-r--r-- | example/ndpi_util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/example/ndpi_util.c b/example/ndpi_util.c index 896332e08..c8e0130ff 100644 --- a/example/ndpi_util.c +++ b/example/ndpi_util.c @@ -530,8 +530,9 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl snprintf(flow->host_server_name, sizeof(flow->host_server_name), "%s", flow->ndpi_flow->host_server_name); - /* BITTORRENT */ - if(flow->detected_protocol.app_protocol == NDPI_PROTOCOL_BITTORRENT) { + if(flow->detected_protocol.app_protocol == NDPI_PROTOCOL_DHCP) { + snprintf(flow->dhcp_fingerprint, sizeof(flow->dhcp_fingerprint), "%s", flow->ndpi_flow->protos.dhcp.fingerprint); + } else if(flow->detected_protocol.app_protocol == NDPI_PROTOCOL_BITTORRENT) { u_int i, j, n = 0; for(i=0, j = 0; j < sizeof(flow->bittorent_hash)-1; i++) { |