diff options
author | Luca Deri <deri@ntop.org> | 2020-02-04 22:34:08 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-02-04 22:34:08 +0100 |
commit | 2701cc94913c4bcabbed959dadf39735b7ea8a7a (patch) | |
tree | b858caf189f8116ba1c11cd90bd07426075eb836 /example/reader_util.c | |
parent | 88fc9232ff1a7652777e4a41d118326c27ee185a (diff) |
Warnign fix
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index cf8261e05..3b78e0c52 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1544,7 +1544,7 @@ ether_type_check: vlan_packet = 1; // double tagging for 802.1Q - while((type == 0x8100) && (ip_offset < (u_int16_t)header->caplen)) { + while((type == 0x8100) && (ip_offset < ((u_int16_t)header->caplen))) { vlan_id = ((packet[ip_offset] << 8) + packet[ip_offset+1]) & 0xFFF; type = (packet[ip_offset+2] << 8) + packet[ip_offset+3]; ip_offset += 4; |