]> 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)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Mon, 10 Jul 2023 13:05:18 +0000 (16:05 +0300)
commit79563af564ad0fe5b9c8d95bf080d570f87b1859
treeeb96a24dbf60cada5b7400c278cd6fca4af386f6
parentf5b8a4e188966b1fc89b3eec45be88ac576fb579
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>
bgpd/bgp_attr.c