]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Check if we have real stream data for tunnel encapsulation sub-tlvs 16291/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 13 Jun 2024 06:00:21 +0000 (09:00 +0300)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 25 Jun 2024 11:27:43 +0000 (11:27 +0000)
commitc01d60b037f0417ff1515dee5652f4115cc88ed5
tree2ff46bd15c147e40e6c55cea239a67d906e1946b
parentc105f9acd97b37463d8c8bbefc064e1f7a28ec16
bgpd: Check if we have real stream data for tunnel encapsulation sub-tlvs

When the packet is malformed it can use whatever values it wants. Let's check
what the real data we have in a stream instead of relying on malformed values.

Reported-by: Iggy Frankovic <iggyfran@amazon.com>
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit 9929486d6bdb28469a5b626a17d5bc9991c83ce3)
bgpd/bgp_attr.c