summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_ri.c
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2021-05-19 16:16:35 +0200
committerGitHub <noreply@github.com>2021-05-19 16:16:35 +0200
commite55ee4b9edd9c61a8dbfb1d13a87161d3a3169b7 (patch)
tree0878ee1d0f22713f923e4dc1b6410fdba108a435 /ospfd/ospf_ri.c
parentMerge pull request #8408 from Orange-OpenSource/TE (diff)
parentospfd: fix SID/Label Sub TLV size (diff)
downloadfrr-e55ee4b9edd9c61a8dbfb1d13a87161d3a3169b7.tar.xz
frr-e55ee4b9edd9c61a8dbfb1d13a87161d3a3169b7.zip
Merge pull request #8690 from idryzhov/ospf-fix-tlv-size
ospfd: fix SID/Label Sub TLV size
Diffstat (limited to 'ospfd/ospf_ri.c')
-rw-r--r--ospfd/ospf_ri.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ospfd/ospf_ri.c b/ospfd/ospf_ri.c
index c87a00a0d..4b7794310 100644
--- a/ospfd/ospf_ri.c
+++ b/ospfd/ospf_ri.c
@@ -447,8 +447,7 @@ static void set_sr_global_label_range(struct sr_block srgb)
{
/* Set Header */
TLV_TYPE(OspfRI.sr_info.srgb) = htons(RI_SR_TLV_SRGB_LABEL_RANGE);
- TLV_LEN(OspfRI.sr_info.srgb) =
- htons(SUBTLV_SID_LABEL_SIZE + sizeof(uint32_t));
+ TLV_LEN(OspfRI.sr_info.srgb) = htons(RI_SR_TLV_LABEL_RANGE_SIZE);
/* Set Range Size */
OspfRI.sr_info.srgb.size = htonl(SET_RANGE_SIZE(srgb.range_size));
/* Set Lower bound label SubTLV */
@@ -471,8 +470,7 @@ static void set_sr_local_label_range(struct sr_block srlb)
{
/* Set Header */
TLV_TYPE(OspfRI.sr_info.srlb) = htons(RI_SR_TLV_SRLB_LABEL_RANGE);
- TLV_LEN(OspfRI.sr_info.srlb) =
- htons(SUBTLV_SID_LABEL_SIZE + sizeof(uint32_t));
+ TLV_LEN(OspfRI.sr_info.srlb) = htons(RI_SR_TLV_LABEL_RANGE_SIZE);
/* Set Range Size */
OspfRI.sr_info.srlb.size = htonl(SET_RANGE_SIZE(srlb.range_size));
/* Set Lower bound label SubTLV */