diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2016-11-13 17:49:37 +0100 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2016-11-13 18:22:03 +0100 |
commit | 6fad364daa69ee700eaad90036901c7ac7122b14 (patch) | |
tree | 08a9fb36215e6ac24b0afd0a43a050c5e0f7ac2c /example/ndpi_util.c | |
parent | dc7a85ee766e1c7213b7e8218a33025b03c37c5b (diff) |
ndpi_util: fix unused variable 'ip6_offset/ethernet_2/llc_off/cdp/slarp' [-Wunused-variable]
Diffstat (limited to 'example/ndpi_util.c')
-rw-r--r-- | example/ndpi_util.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/example/ndpi_util.c b/example/ndpi_util.c index 34cb1f635..2b1eb0b3a 100644 --- a/example/ndpi_util.c +++ b/example/ndpi_util.c @@ -542,17 +542,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; @@ -573,11 +567,10 @@ void ndpi_workflow_process_packet (struct ndpi_workflow * workflow, u_int16_t fc; u_int16_t type; 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, ip_len; u_int16_t frag_off = 0, vlan_id = 0; u_int8_t proto = 0; u_int32_t label; |