/* 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"
#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);
ret = sscanf(ver_string, "%" SCNu32 ".%" SCNu32, &FRR_MAJOR,
&FRR_MINOR);
if (ret != 2)
- flog_err(EIGRP_ERR_PACKET,
+ flog_err(EC_EIGRP_PACKET,
"Did not Properly parse %s, please fix VERSION string",
VERSION);
}
void eigrp_nbr_hard_restart(struct eigrp_neighbor *nbr, struct vty *vty)
{
if (nbr == NULL) {
- flog_err(EIGRP_ERR_CONFIG,
+ flog_err(EC_EIGRP_CONFIG,
"Nbr Hard restart: Neighbor not specified.");
return;
}
goto out;
}
if (ep->length < EIGRP_HEADER_LEN) {
- flog_err(EIGRP_ERR_PACKET,
+ 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);
if (!dest) {
char buf[PREFIX_STRLEN];
- flog_err(EIGRP_ERR_PACKET,
+ flog_err(EC_EIGRP_PACKET,
"%s: Received prefix %s which we do not know about",
__PRETTY_FUNCTION__,
prefix2str(&dest_addr, buf, sizeof(buf)));