Warnign fix

This commit is contained in:
Luca Deri
2020-02-04 22:34:08 +01:00
parent 88fc9232ff
commit 2701cc9491
+1 -1
View File
@@ -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;