aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-vlan.c
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2021-06-04 08:25:44 -0400
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-06-05 08:57:17 +0000
commit174b994031852fac6c49e93d0c0dcf96d33608e7 (patch)
tree3f62cbfa53b88c6f722d711712280af6c63c3721 /epan/dissectors/packet-vlan.c
parent7179e1d1fbd7e6fb3d4f8848e432dd7c5ad54dae (diff)
VLAN: Increase permitted number of tags in a packet
VLAN_MAX_NESTED_TAGS is a misnomer, it sets a maximum on the total number of tags in a packet, nested or not. It's possible to surpass the current value of 10 with legal packets, e.g. jumbo frames that carry entire DVB Base Band Frames with GSE (or TS/MPE) that have fifteen PDUs each with a IP/VLAN/ARP. Raise it to a somewhat higher but still small finite limit.
Diffstat (limited to 'epan/dissectors/packet-vlan.c')
-rw-r--r--epan/dissectors/packet-vlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-vlan.c b/epan/dissectors/packet-vlan.c
index 095f96364b..a56a5774c8 100644
--- a/epan/dissectors/packet-vlan.c
+++ b/epan/dissectors/packet-vlan.c
@@ -189,7 +189,7 @@ static gint ett_vlan = -1;
static expert_field ei_vlan_len = EI_INIT;
static expert_field ei_vlan_too_many_tags = EI_INIT;
-#define VLAN_MAX_NESTED_TAGS 10
+#define VLAN_MAX_NESTED_TAGS 20
static gboolean
capture_vlan(const guchar *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header _U_ ) {