diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-05-18 18:25:14 +0300 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-05-18 21:00:41 +0300 | 
| commit | bc298f5d493f5fe95d04bd68f15d082974ed04bf (patch) | |
| tree | 985169f14f10cf95f812733eeab928c53d593b97 /ospfd/ospf_sr.h | |
| parent | 4006e41baffd2de72a3fe42f16a55fc75be5940a (diff) | |
ospfd: fix SID/Label Sub TLV size
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'ospfd/ospf_sr.h')
| -rw-r--r-- | ospfd/ospf_sr.h | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/ospfd/ospf_sr.h b/ospfd/ospf_sr.h index ce13457484..f00d8e1b0b 100644 --- a/ospfd/ospf_sr.h +++ b/ospfd/ospf_sr.h @@ -61,7 +61,7 @@  /* SID/Label Sub TLV - section 2.1 */  #define SUBTLV_SID_LABEL		1 -#define SUBTLV_SID_LABEL_SIZE		8 +#define SUBTLV_SID_LABEL_SIZE		4  struct subtlv_sid_label {  	/* Length is 3 (20 rightmost bits MPLS label) or 4 (32 bits SID) */  	struct tlv_header header; @@ -88,6 +88,7 @@ struct ri_sr_tlv_sr_algorithm {  /* RI SID/Label Range TLV used for SRGB & SRLB - section 3.2 & 3.3 */  #define RI_SR_TLV_SRGB_LABEL_RANGE	9  #define RI_SR_TLV_SRLB_LABEL_RANGE	14 +#define RI_SR_TLV_LABEL_RANGE_SIZE	12  struct ri_sr_tlv_sid_label_range {  	struct tlv_header header;  /* Only 24 upper most bits are significant */  | 
