aboutsummaryrefslogtreecommitdiff
path: root/example/ndpi_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/ndpi_util.c')
-rw-r--r--example/ndpi_util.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/example/ndpi_util.c b/example/ndpi_util.c
index 34cb1f635..df47b888c 100644
--- a/example/ndpi_util.c
+++ b/example/ndpi_util.c
@@ -79,10 +79,6 @@ void ndpi_free_flow_info_half(struct ndpi_flow_info *flow) {
/* ***************************************************** */
-static const u_int8_t nDPI_traceLevel = 0;
-
-/* ***************************************************** */
-
extern u_int32_t current_ndpi_memory, max_ndpi_memory;
/**
@@ -542,17 +538,11 @@ void ndpi_workflow_process_packet (struct ndpi_workflow * workflow,
/* --- Ethernet header --- */
const struct ndpi_ethhdr *ethernet;
- /* --- Ethernet II header --- */
- const struct ndpi_ethhdr *ethernet_2;
/* --- LLC header --- */
const struct ndpi_llc_header *llc;
/* --- Cisco HDLC header --- */
const struct ndpi_chdlc *chdlc;
- /* --- SLARP frame --- */
- struct ndpi_slarp *slarp;
- /* --- CDP --- */
- struct ndpi_cdp *cdp;
/* --- Radio Tap header --- */
const struct ndpi_radiotap_header *radiotap;
@@ -571,13 +561,12 @@ void ndpi_workflow_process_packet (struct ndpi_workflow * workflow,
u_int16_t eth_offset = 0;
u_int16_t radio_len;
u_int16_t fc;
- u_int16_t type;
+ u_int16_t type = 0;
int wifi_len = 0;
- int llc_off;
int pyld_eth_len = 0;
int check;
u_int64_t time;
- u_int16_t ip_offset, ip_len, ip6_offset;
+ u_int16_t ip_offset = 0, ip_len;
u_int16_t frag_off = 0, vlan_id = 0;
u_int8_t proto = 0;
u_int32_t label;