diff options
Diffstat (limited to 'eigrpd')
| -rw-r--r-- | eigrpd/eigrp_errors.c | 4 | ||||
| -rw-r--r-- | eigrpd/eigrp_errors.h | 4 | ||||
| -rw-r--r-- | eigrpd/eigrp_hello.c | 6 | ||||
| -rw-r--r-- | eigrpd/eigrp_neighbor.c | 4 | ||||
| -rw-r--r-- | eigrpd/eigrp_packet.c | 15 | ||||
| -rw-r--r-- | eigrpd/eigrp_reply.c | 9 | ||||
| -rw-r--r-- | eigrpd/eigrp_topology.c | 4 | ||||
| -rw-r--r-- | eigrpd/eigrpd.c | 2 |
8 files changed, 24 insertions, 24 deletions
diff --git a/eigrpd/eigrp_errors.c b/eigrpd/eigrp_errors.c index 3db0ec8545..75cf953557 100644 --- a/eigrpd/eigrp_errors.c +++ b/eigrpd/eigrp_errors.c @@ -26,13 +26,13 @@ /* clang-format off */ static struct log_ref ferr_eigrp_err[] = { { - .code = EIGRP_ERR_PACKET, + .code = EC_EIGRP_PACKET, .title = "EIGRP Packet Error", .description = "EIGRP has a packet that does not correctly decode or encode", .suggestion = "Gather log files from both sides of the neighbor relationship and open an issue" }, { - .code = EIGRP_ERR_CONFIG, + .code = EC_EIGRP_CONFIG, .title = "EIGRP Configuration Error", .description = "EIGRP has detected a configuration error", .suggestion = "Correct the configuration issue, if it still persists open an Issue" diff --git a/eigrpd/eigrp_errors.h b/eigrpd/eigrp_errors.h index e1ace8ab49..3270e65138 100644 --- a/eigrpd/eigrp_errors.h +++ b/eigrpd/eigrp_errors.h @@ -24,8 +24,8 @@ #include "lib/ferr.h" enum eigrp_log_refs { - EIGRP_ERR_PACKET = EIGRP_FERR_START, - EIGRP_ERR_CONFIG, + EC_EIGRP_PACKET = EIGRP_FERR_START, + EC_EIGRP_CONFIG, }; extern void eigrp_error_init(void); diff --git a/eigrpd/eigrp_hello.c b/eigrpd/eigrp_hello.c index d438db28d6..413a35f2fa 100644 --- a/eigrpd/eigrp_hello.c +++ b/eigrpd/eigrp_hello.c @@ -421,9 +421,9 @@ void eigrp_sw_version_initialize(void) ret = sscanf(ver_string, "%" SCNu32 ".%" SCNu32, &FRR_MAJOR, &FRR_MINOR); if (ret != 2) - flog_err(EIGRP_ERR_PACKET, - "Did not Properly parse %s, please fix VERSION string", - VERSION); + flog_err(EC_EIGRP_PACKET, + "Did not Properly parse %s, please fix VERSION string", + VERSION); } /** diff --git a/eigrpd/eigrp_neighbor.c b/eigrpd/eigrp_neighbor.c index b10673d9e4..66dd5f3419 100644 --- a/eigrpd/eigrp_neighbor.c +++ b/eigrpd/eigrp_neighbor.c @@ -336,8 +336,8 @@ int eigrp_nbr_count_get(void) void eigrp_nbr_hard_restart(struct eigrp_neighbor *nbr, struct vty *vty) { if (nbr == NULL) { - flog_err(EIGRP_ERR_CONFIG, - "Nbr Hard restart: Neighbor not specified."); + flog_err(EC_EIGRP_CONFIG, + "Nbr Hard restart: Neighbor not specified."); return; } diff --git a/eigrpd/eigrp_packet.c b/eigrpd/eigrp_packet.c index 6338e5cf74..f3b583abdd 100644 --- a/eigrpd/eigrp_packet.c +++ b/eigrpd/eigrp_packet.c @@ -348,14 +348,14 @@ int eigrp_write(struct thread *thread) /* Get one packet from queue. */ ep = eigrp_fifo_next(ei->obuf); if (!ep) { - flog_err(LIB_ERR_DEVELOPMENT, - "%s: Interface %s no packet on queue?", - __PRETTY_FUNCTION__, ei->ifp->name); + flog_err(EC_LIB_DEVELOPMENT, + "%s: Interface %s no packet on queue?", + __PRETTY_FUNCTION__, ei->ifp->name); goto out; } if (ep->length < EIGRP_HEADER_LEN) { - flog_err(EIGRP_ERR_PACKET, - "%s: Packet just has a header?", __PRETTY_FUNCTION__); + flog_err(EC_EIGRP_PACKET, "%s: Packet just has a header?", + __PRETTY_FUNCTION__); eigrp_header_dump((struct eigrp_header *)ep->s->data); eigrp_packet_delete(ei); goto out; @@ -1214,9 +1214,8 @@ uint16_t eigrp_add_internalTLV_to_stream(struct stream *s, stream_putw(s, length); break; default: - flog_err(LIB_ERR_DEVELOPMENT, - "%s: Unexpected prefix length: %d", - __PRETTY_FUNCTION__, pe->destination->prefixlen); + flog_err(EC_LIB_DEVELOPMENT, "%s: Unexpected prefix length: %d", + __PRETTY_FUNCTION__, pe->destination->prefixlen); return 0; } stream_putl(s, 0x00000000); diff --git a/eigrpd/eigrp_reply.c b/eigrpd/eigrp_reply.c index b6e6352def..ccf0496736 100644 --- a/eigrpd/eigrp_reply.c +++ b/eigrpd/eigrp_reply.c @@ -170,10 +170,11 @@ void eigrp_reply_receive(struct eigrp *eigrp, struct ip *iph, if (!dest) { char buf[PREFIX_STRLEN]; - flog_err(EIGRP_ERR_PACKET, - "%s: Received prefix %s which we do not know about", - __PRETTY_FUNCTION__, - prefix2str(&dest_addr, buf, sizeof(buf))); + flog_err( + EC_EIGRP_PACKET, + "%s: Received prefix %s which we do not know about", + __PRETTY_FUNCTION__, + prefix2str(&dest_addr, buf, sizeof(buf))); eigrp_IPv4_InternalTLV_free(tlv); continue; } diff --git a/eigrpd/eigrp_topology.c b/eigrpd/eigrp_topology.c index 61eee99f6a..80814d6d36 100644 --- a/eigrpd/eigrp_topology.c +++ b/eigrpd/eigrp_topology.c @@ -412,8 +412,8 @@ eigrp_topology_update_distance(struct eigrp_fsm_action_message *msg) } break; default: - flog_err(LIB_ERR_DEVELOPMENT, "%s: Please implement handler", - __PRETTY_FUNCTION__); + flog_err(EC_LIB_DEVELOPMENT, "%s: Please implement handler", + __PRETTY_FUNCTION__); break; } distance_done: diff --git a/eigrpd/eigrpd.c b/eigrpd/eigrpd.c index 91c0046bb9..b30f14f748 100644 --- a/eigrpd/eigrpd.c +++ b/eigrpd/eigrpd.c @@ -163,7 +163,7 @@ static struct eigrp *eigrp_new(const char *AS) if ((eigrp_socket = eigrp_sock_init()) < 0) { flog_err_sys( - LIB_ERR_SOCKET, + EC_LIB_SOCKET, "eigrp_new: fatal error: eigrp_sock_init was unable to open a socket"); exit(1); } |
