diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-09-13 21:01:19 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-09-13 21:01:19 +0200 |
commit | 5b003f31fdd6171c4b65546490221f63b2114c4d (patch) | |
tree | 2ca865f54c8f00a25e3c1553893bded4933bcc0f /babeld/route.c | |
parent | nhrpd: NHRP_[ERR|WARN] -> EC_NHRP (diff) | |
download | frr-5b003f31fdd6171c4b65546490221f63b2114c4d.tar.xz frr-5b003f31fdd6171c4b65546490221f63b2114c4d.zip |
babeld: BABEL_[ERR|WARN] -> EC_BABEL
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'babeld/route.c')
-rw-r--r-- | babeld/route.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/babeld/route.c b/babeld/route.c index ceeaa1057..76f038cda 100644 --- a/babeld/route.c +++ b/babeld/route.c @@ -399,14 +399,14 @@ install_route(struct babel_route *route) return; if(!route_feasible(route)) - flog_err(BABEL_ERR_ROUTE, "WARNING: installing unfeasible route " + flog_err(EC_BABEL_ROUTE, "WARNING: installing unfeasible route " "(this shouldn't happen)."); i = find_route_slot(route->src->prefix, route->src->plen, NULL); assert(i >= 0 && i < route_slots); if(routes[i] != route && routes[i]->installed) { - flog_err(BABEL_ERR_ROUTE, + flog_err(EC_BABEL_ROUTE, "WARNING: attempting to install duplicate route " "(this shouldn't happen)."); return; @@ -418,7 +418,7 @@ install_route(struct babel_route *route) metric_to_kernel(route_metric(route)), NULL, 0, 0); if(rc < 0) { int save = errno; - flog_err(BABEL_ERR_ROUTE, "kernel_route(ADD): %s", + flog_err(EC_BABEL_ROUTE, "kernel_route(ADD): %s", safe_strerror(errno)); if(save != EEXIST) return; @@ -441,7 +441,7 @@ uninstall_route(struct babel_route *route) route->neigh->ifp->ifindex, metric_to_kernel(route_metric(route)), NULL, 0, 0); if(rc < 0) - flog_err(BABEL_ERR_ROUTE, "kernel_route(FLUSH): %s", + flog_err(EC_BABEL_ROUTE, "kernel_route(FLUSH): %s", safe_strerror(errno)); route->installed = 0; @@ -465,7 +465,7 @@ switch_routes(struct babel_route *old, struct babel_route *new) return; if(!route_feasible(new)) - flog_err(BABEL_ERR_ROUTE, "WARNING: switching to unfeasible route " + flog_err(EC_BABEL_ROUTE, "WARNING: switching to unfeasible route " "(this shouldn't happen)."); rc = kernel_route(ROUTE_MODIFY, old->src->prefix, old->src->plen, @@ -474,7 +474,7 @@ switch_routes(struct babel_route *old, struct babel_route *new) new->nexthop, new->neigh->ifp->ifindex, metric_to_kernel(route_metric(new))); if(rc < 0) { - flog_err(BABEL_ERR_ROUTE, "kernel_route(MODIFY): %s", + flog_err(EC_BABEL_ROUTE, "kernel_route(MODIFY): %s", safe_strerror(errno)); return; } @@ -503,7 +503,7 @@ change_route_metric(struct babel_route *route, route->nexthop, route->neigh->ifp->ifindex, new); if(rc < 0) { - flog_err(BABEL_ERR_ROUTE, "kernel_route(MODIFY metric): %s", + flog_err(EC_BABEL_ROUTE, "kernel_route(MODIFY metric): %s", safe_strerror(errno)); return; } @@ -798,7 +798,7 @@ update_route(const unsigned char *router_id, return NULL; if(martian_prefix(prefix, plen)) { - flog_err(BABEL_ERR_ROUTE, "Rejecting martian route to %s through %s.", + flog_err(EC_BABEL_ROUTE, "Rejecting martian route to %s through %s.", format_prefix(prefix, plen), format_address(nexthop)); return NULL; } @@ -906,7 +906,7 @@ update_route(const unsigned char *router_id, route->next = NULL; new_route = insert_route(route); if(new_route == NULL) { - flog_err(BABEL_ERR_ROUTE, "Couldn't insert route."); + flog_err(EC_BABEL_ROUTE, "Couldn't insert route."); free(route); return NULL; } |