mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +00:00
Merge remote-tracking branch 'origin/topic/seth/q-in-q'
Closes #641. * origin/topic/seth/q-in-q: Add support for 802.1ah (Q-in-Q).
This commit is contained in:
commit
8dca2dd971
6 changed files with 27 additions and 1 deletions
|
@ -231,6 +231,15 @@ void PktSrc::Process()
|
|||
data += get_link_header_size(datalink);
|
||||
data += 4; // Skip the vlan header
|
||||
pkt_hdr_size = 0;
|
||||
|
||||
// Check for 802.1ah (Q-in-Q) containing IP.
|
||||
// Only do a second layer of vlan tag
|
||||
// stripping because there is no
|
||||
// specification that allows for deeper
|
||||
// nesting.
|
||||
if ( ((data[2] << 8) + data[3]) == 0x0800 )
|
||||
data += 4;
|
||||
|
||||
break;
|
||||
|
||||
// PPPoE carried over the ethernet frame.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue