aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.c
diff options
context:
space:
mode:
authorZied Aouini <aouinizied@gmail.com>2020-10-21 15:07:20 +0200
committerGitHub <noreply@github.com>2020-10-21 15:07:20 +0200
commit43c1f6a3fd037ef30e46a7c40f776a7119c72ca7 (patch)
tree03644aba0a1819e7b7bf9401a4c0e9f52a498acf /example/reader_util.c
parent822c8e56f7fc5e35b871d89071332a56c56dbbd2 (diff)
CAPWAP tunnel decoding fix (#1038)
* Fix CAPWAP processing. * Update result.
Diffstat (limited to 'example/reader_util.c')
-rw-r--r--example/reader_util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index 630a82005..3853aa919 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -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]));