]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
mpls: Allow MPLS after vlan.
authorWesley van der Ree <wesley.vanderree@fox-it.com>
Tue, 15 Oct 2019 13:08:58 +0000 (15:08 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 17 Oct 2019 09:28:54 +0000 (11:28 +0200)
Fixes #2771

src/decode-vlan.c

index d9424c9f9aaf9ca9174ecf967c07eda1336efe8f..979014bc9b67fa575e78c164ed79423037e5d1b2 100644 (file)
@@ -130,6 +130,11 @@ int DecodeVLAN(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p,
             break;
         case ETHERNET_TYPE_ARP:
             break;
+        case ETHERNET_TYPE_MPLS_UNICAST:
+        case ETHERNET_TYPE_MPLS_MULTICAST:
+            DecodeMPLS(tv, dtv, p, pkt + VLAN_HEADER_LEN,
+                       len - VLAN_HEADER_LEN, pq);
+            break;
         default:
             SCLogDebug("unknown VLAN type: %" PRIx32 "", proto);
             ENGINE_SET_INVALID_EVENT(p, VLAN_UNKNOWN_TYPE);