summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_sr.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-08-08 19:08:36 +0200
committerRenato Westphal <renato@opensourcerouting.org>2019-09-07 02:06:11 +0200
commit635a039eef1a57fae5ff979451814951d8fb3ac5 (patch)
tree7c6d014461d428dfe0d669651fa6ad4e8bb05aae /ospfd/ospf_sr.c
parentzebra: identify MPLS FTNs by route type and instance (diff)
downloadfrr-635a039eef1a57fae5ff979451814951d8fb3ac5.tar.xz
frr-635a039eef1a57fae5ff979451814951d8fb3ac5.zip
lib, zebra: rename LSP type used for OSPF SR
SR support for IS-IS is coming so we need to be able to distinguish OSPF and IS-IS LSPs. While here, add missing case statement for LDP on lsp_type_from_re_type(). Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_sr.c')
-rw-r--r--ospfd/ospf_sr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_sr.c b/ospfd/ospf_sr.c
index 9029eca2b..70a4d9395 100644
--- a/ospfd/ospf_sr.c
+++ b/ospfd/ospf_sr.c
@@ -617,7 +617,7 @@ static int ospf_zebra_send_mpls_labels(int cmd, struct sr_nhlfe nhlfe)
inet_ntoa(nhlfe.prefv4.prefix),
nhlfe.prefv4.prefixlen, nhlfe.ifindex);
- zl.type = ZEBRA_LSP_SR;
+ zl.type = ZEBRA_LSP_OSPF_SR;
zl.prefix.family = nhlfe.prefv4.family;
zl.prefix.prefixlen = nhlfe.prefv4.prefixlen;
zl.prefix.u.prefix4 = nhlfe.prefv4.prefix;