CAPWAP tunnel decoding fix (#1038)

* Fix CAPWAP processing.

* Update result.
This commit is contained in:
Zied Aouini
2020-10-21 15:07:20 +02:00
committed by GitHub
parent 822c8e56f7
commit 43c1f6a3fd
2 changed files with 12 additions and 6 deletions
+1 -2
View File
@@ -1942,9 +1942,8 @@ struct ndpi_proto ndpi_workflow_process_packet(struct ndpi_workflow * workflow,
offset += msg_len;
if((offset + 32 < header->caplen) && (packet[offset] == 0x02)) {
if((offset + 32 < header->caplen)) {
/* IEEE 802.11 Data */
offset += 24;
/* LLC header is 8 bytes */
type = ntohs((u_int16_t)*((u_int16_t*)&packet[offset+6]));