]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Get 1 or 2 octets for Sub-TLV length (Tunnel Encap attr)
authorDonatas Abraitis <donatas@opensourcerouting.org>
Mon, 10 Jul 2023 11:40:24 +0000 (14:40 +0300)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 13 Jun 2024 07:08:40 +0000 (07:08 +0000)
commit8129facf3a22ce1ca3c40f9197d962de0ba92c75
tree10e39b71c75a849618a202c2be322cda5d2639c1
parent6f79347663f052088f97a574ff738f67c2cf280d
bgpd: Get 1 or 2 octets for Sub-TLV length (Tunnel Encap attr)

The total number of octets of the Sub-TLV Value field. The Sub-TLV Length field
contains 1 octet if the Sub-TLV Type field contains a value in the range from
0-127. The Sub-TLV Length field contains two octets if the Sub-TLV Type field
contains a value in the range from 128-255.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit 79563af564ad0fe5b9c8d95bf080d570f87b1859)
bgpd/bgp_attr.c