ndpi_util: fix unused variable 'ip6_offset/ethernet_2/llc_off/cdp/slarp' [-Wunused-variable]
This commit is contained in:
+1
-8
@@ -542,17 +542,11 @@ void ndpi_workflow_process_packet (struct ndpi_workflow * workflow,
|
|||||||
|
|
||||||
/* --- Ethernet header --- */
|
/* --- Ethernet header --- */
|
||||||
const struct ndpi_ethhdr *ethernet;
|
const struct ndpi_ethhdr *ethernet;
|
||||||
/* --- Ethernet II header --- */
|
|
||||||
const struct ndpi_ethhdr *ethernet_2;
|
|
||||||
/* --- LLC header --- */
|
/* --- LLC header --- */
|
||||||
const struct ndpi_llc_header *llc;
|
const struct ndpi_llc_header *llc;
|
||||||
|
|
||||||
/* --- Cisco HDLC header --- */
|
/* --- Cisco HDLC header --- */
|
||||||
const struct ndpi_chdlc *chdlc;
|
const struct ndpi_chdlc *chdlc;
|
||||||
/* --- SLARP frame --- */
|
|
||||||
struct ndpi_slarp *slarp;
|
|
||||||
/* --- CDP --- */
|
|
||||||
struct ndpi_cdp *cdp;
|
|
||||||
|
|
||||||
/* --- Radio Tap header --- */
|
/* --- Radio Tap header --- */
|
||||||
const struct ndpi_radiotap_header *radiotap;
|
const struct ndpi_radiotap_header *radiotap;
|
||||||
@@ -573,11 +567,10 @@ void ndpi_workflow_process_packet (struct ndpi_workflow * workflow,
|
|||||||
u_int16_t fc;
|
u_int16_t fc;
|
||||||
u_int16_t type;
|
u_int16_t type;
|
||||||
int wifi_len = 0;
|
int wifi_len = 0;
|
||||||
int llc_off;
|
|
||||||
int pyld_eth_len = 0;
|
int pyld_eth_len = 0;
|
||||||
int check;
|
int check;
|
||||||
u_int64_t time;
|
u_int64_t time;
|
||||||
u_int16_t ip_offset, ip_len, ip6_offset;
|
u_int16_t ip_offset, ip_len;
|
||||||
u_int16_t frag_off = 0, vlan_id = 0;
|
u_int16_t frag_off = 0, vlan_id = 0;
|
||||||
u_int8_t proto = 0;
|
u_int8_t proto = 0;
|
||||||
u_int32_t label;
|
u_int32_t label;
|
||||||
|
|||||||
Reference in New Issue
Block a user