summaryrefslogtreecommitdiffstats
path: root/lib/prefix.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-08-01 02:06:40 +0200
committerRenato Westphal <renato@opensourcerouting.org>2017-08-01 04:44:42 +0200
commit5c5255381e5b457e263081455a9677afa6b9e470 (patch)
tree12e401fd7bdfcb3cfa95583f33aaa124c0ddc3b8 /lib/prefix.c
parentlib: remove SAFI_RESERVED_4 and SAFI_RESERVED_5 (diff)
downloadfrr-5c5255381e5b457e263081455a9677afa6b9e470.tar.xz
frr-5c5255381e5b457e263081455a9677afa6b9e470.zip
lib/bgpd: introduce the iana_safi_t enum
We had afi_t/iana_afi_t for AFIs but only safi_t for SAFIs. Fix this inconsistency. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/prefix.c')
-rw-r--r--lib/prefix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/prefix.c b/lib/prefix.c
index 88b13cd99..0ba0025c6 100644
--- a/lib/prefix.c
+++ b/lib/prefix.c
@@ -507,8 +507,9 @@ const char *safi2str(safi_t safi)
return "evpn";
case SAFI_LABELED_UNICAST:
return "labeled-unicast";
+ default:
+ return "unknown";
}
- return NULL;
}
/* If n includes p prefix then return 1 else return 0. */