remove traces of DHCP detector from ubntac2.c
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* dhcp.c
|
* ubntac2.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009-2011 by ipoque GmbH
|
* Copyright (C) 2009-2011 by ipoque GmbH
|
||||||
* Copyright (C) 2011-15 - ntop.org
|
* Copyright (C) 2011-15 - ntop.org
|
||||||
@@ -40,11 +40,8 @@ void ndpi_search_ubntac2(struct ndpi_detection_module_struct *ndpi_struct, struc
|
|||||||
// struct ndpi_id_struct *src=ndpi_struct->src;
|
// struct ndpi_id_struct *src=ndpi_struct->src;
|
||||||
// struct ndpi_id_struct *dst=ndpi_struct->dst;
|
// struct ndpi_id_struct *dst=ndpi_struct->dst;
|
||||||
|
|
||||||
/* this detection also works for asymmetric dhcp traffic */
|
|
||||||
|
|
||||||
NDPI_LOG(NDPI_PROTOCOL_UBNTAC2, ndpi_struct, NDPI_LOG_TRACE, "UBNTAC2 detection... plen:%i %i:%i\n", packet->payload_packet_len, ntohs(packet->udp->source), ntohs(packet->udp->dest));
|
NDPI_LOG(NDPI_PROTOCOL_UBNTAC2, ndpi_struct, NDPI_LOG_TRACE, "UBNTAC2 detection... plen:%i %i:%i\n", packet->payload_packet_len, ntohs(packet->udp->source), ntohs(packet->udp->dest));
|
||||||
|
|
||||||
/*check standard DHCP 0.0.0.0:68 -> 255.255.255.255:67 */
|
|
||||||
if (packet->payload_packet_len >= 135 &&
|
if (packet->payload_packet_len >= 135 &&
|
||||||
(packet->udp->source == htons(10001) || packet->udp->dest == htons(10001)) &&
|
(packet->udp->source == htons(10001) || packet->udp->dest == htons(10001)) &&
|
||||||
memcmp(&(packet->payload[36]), "UBNT", 4) == 0) {
|
memcmp(&(packet->payload[36]), "UBNT", 4) == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user