summaryrefslogtreecommitdiff
path: root/zebra/rt_socket.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-08-16 20:10:32 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-09-06 20:56:38 +0000
commit9df414feebc0748bbff2ea9071c76be59618e8e6 (patch)
tree3620b5236cc2c247a4aeb4633cb44e5c6042a615 /zebra/rt_socket.c
parentdbb93f1b90be4cad6483874b843e309186c4b1ce (diff)
zebra: flog_warn conversion
Convert Zebra to user error subsystem. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/rt_socket.c')
-rw-r--r--zebra/rt_socket.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/zebra/rt_socket.c b/zebra/rt_socket.c
index c0ad87ce39..1e51a48203 100644
--- a/zebra/rt_socket.c
+++ b/zebra/rt_socket.c
@@ -72,10 +72,10 @@ static int kernel_rtm_add_labels(struct mpls_label_stack *nh_label,
struct sockaddr_mpls *smpls)
{
if (nh_label->num_labels > 1) {
- zlog_warn(
- "%s: can't push %u labels at "
- "once (maximum is 1)",
- __func__, nh_label->num_labels);
+ flog_warn(ZEBRA_ERR_MAX_LABELS_PUSH,
+ "%s: can't push %u labels at "
+ "once (maximum is 1)",
+ __func__, nh_label->num_labels);
return -1;
}
@@ -399,7 +399,8 @@ enum dp_req_result kernel_route_rib(struct route_node *rn,
int route = 0;
if (src_p && src_p->prefixlen) {
- zlog_warn("%s: IPv6 sourcedest routes unsupported!", __func__);
+ flog_warn(ZEBRA_ERR_UNSUPPORTED_V6_SRCDEST,
+ "%s: IPv6 sourcedest routes unsupported!", __func__);
return DP_REQUEST_FAILURE;
}