mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-02 00:40:17 +00:00
Implemented stacked DPI decoding
This commit is contained in:
parent
ecdb7cdc55
commit
3d5f0ee315
1 changed files with 1 additions and 1 deletions
|
|
@ -1427,7 +1427,7 @@ struct ndpi_proto ndpi_workflow_process_packet(struct ndpi_workflow * workflow,
|
|||
ip_offset += 4;
|
||||
vlan_packet = 1;
|
||||
// double tagging for 802.1Q
|
||||
if(type == 0x8100) {
|
||||
while((type == 0x8100) && (ip_offset < 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue