diff options
author | Luca Deri <deri@ntop.org> | 2022-04-01 19:23:13 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2022-04-01 19:23:13 +0200 |
commit | 8080b3d14fdc14d7cbeef20cdd686100339d4e46 (patch) | |
tree | f6c6983bad2bec525792b887e268ad815ce26995 | |
parent | 9f3a6f131b228cd7a8094610e993141a8c8b2fd7 (diff) |
Removed un-necessary guess in mining
-rw-r--r-- | src/lib/protocols/mining.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/protocols/mining.c b/src/lib/protocols/mining.c index 4d271fec3..82e4038db 100644 --- a/src/lib/protocols/mining.c +++ b/src/lib/protocols/mining.c @@ -107,16 +107,13 @@ static void ndpi_search_mining_tcp(struct ndpi_detection_module_struct *ndpi_str if((packet->payload_packet_len > 300) && (packet->payload_packet_len < 600) && (packet->payload[2] == 0x04)) { - if(isEthPort(ntohs(packet->tcp->dest)) /* Ethereum port */) { snprintf(flow->flow_extra_info, sizeof(flow->flow_extra_info), "%s", "ETH"); ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_MINING, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI); if(packet->iph) /* TODO: ipv6 */ cacheMiningHostTwins(ndpi_struct, packet->iph->saddr + packet->iph->daddr); return; - } else - flow->guessed_protocol_id = NDPI_PROTOCOL_MINING; - + } } else if(ndpi_strnstr((const char *)packet->payload, "{", packet->payload_packet_len) && ( ndpi_strnstr((const char *)packet->payload, "\"eth1.0\"", packet->payload_packet_len) |