Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bgpd: A couple more fixes for Tunnel encapsulation handling (backport #16214) #16293

Merged
merged 2 commits into from
Jun 25, 2024

Commits on Jun 25, 2024

  1. bgpd: Adjust the length of tunnel encap sub-tlv by sub-tlv type

    Fixes: 79563af ("bgpd: Get 1 or 2 octets for Sub-TLV length (Tunnel Encap attr)")
    
    Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
    (cherry picked from commit 34b209f)
    ton31337 authored and mergify[bot] committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    42a301d View commit details
    Browse the repository at this point in the history
  2. 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 9929486)
    ton31337 authored and mergify[bot] committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    5389197 View commit details
    Browse the repository at this point in the history