diff options
author | John Thacker <johnthacker@gmail.com> | 2021-06-04 08:25:44 -0400 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-06-05 08:57:17 +0000 |
commit | 174b994031852fac6c49e93d0c0dcf96d33608e7 (patch) | |
tree | 3f62cbfa53b88c6f722d711712280af6c63c3721 | |
parent | 7179e1d1fbd7e6fb3d4f8848e432dd7c5ad54dae (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.
-rw-r--r-- | epan/dissectors/packet-vlan.c | 2 |
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_ ) { |