mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 11:25:41 +00:00
eigrpd: EIGRP_[ERR|WARN] -> EC_EIGRP
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
5b003f31fd
commit
f0132ab5a7
@ -26,13 +26,13 @@
|
|||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
static struct log_ref ferr_eigrp_err[] = {
|
static struct log_ref ferr_eigrp_err[] = {
|
||||||
{
|
{
|
||||||
.code = EIGRP_ERR_PACKET,
|
.code = EC_EIGRP_PACKET,
|
||||||
.title = "EIGRP Packet Error",
|
.title = "EIGRP Packet Error",
|
||||||
.description = "EIGRP has a packet that does not correctly decode or encode",
|
.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"
|
.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",
|
.title = "EIGRP Configuration Error",
|
||||||
.description = "EIGRP has detected a configuration error",
|
.description = "EIGRP has detected a configuration error",
|
||||||
.suggestion = "Correct the configuration issue, if it still persists open an Issue"
|
.suggestion = "Correct the configuration issue, if it still persists open an Issue"
|
||||||
|
@ -24,8 +24,8 @@
|
|||||||
#include "lib/ferr.h"
|
#include "lib/ferr.h"
|
||||||
|
|
||||||
enum eigrp_log_refs {
|
enum eigrp_log_refs {
|
||||||
EIGRP_ERR_PACKET = EIGRP_FERR_START,
|
EC_EIGRP_PACKET = EIGRP_FERR_START,
|
||||||
EIGRP_ERR_CONFIG,
|
EC_EIGRP_CONFIG,
|
||||||
};
|
};
|
||||||
|
|
||||||
extern void eigrp_error_init(void);
|
extern void eigrp_error_init(void);
|
||||||
|
@ -421,7 +421,7 @@ void eigrp_sw_version_initialize(void)
|
|||||||
ret = sscanf(ver_string, "%" SCNu32 ".%" SCNu32, &FRR_MAJOR,
|
ret = sscanf(ver_string, "%" SCNu32 ".%" SCNu32, &FRR_MAJOR,
|
||||||
&FRR_MINOR);
|
&FRR_MINOR);
|
||||||
if (ret != 2)
|
if (ret != 2)
|
||||||
flog_err(EIGRP_ERR_PACKET,
|
flog_err(EC_EIGRP_PACKET,
|
||||||
"Did not Properly parse %s, please fix VERSION string",
|
"Did not Properly parse %s, please fix VERSION string",
|
||||||
VERSION);
|
VERSION);
|
||||||
}
|
}
|
||||||
|
@ -336,7 +336,7 @@ int eigrp_nbr_count_get(void)
|
|||||||
void eigrp_nbr_hard_restart(struct eigrp_neighbor *nbr, struct vty *vty)
|
void eigrp_nbr_hard_restart(struct eigrp_neighbor *nbr, struct vty *vty)
|
||||||
{
|
{
|
||||||
if (nbr == NULL) {
|
if (nbr == NULL) {
|
||||||
flog_err(EIGRP_ERR_CONFIG,
|
flog_err(EC_EIGRP_CONFIG,
|
||||||
"Nbr Hard restart: Neighbor not specified.");
|
"Nbr Hard restart: Neighbor not specified.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -354,7 +354,7 @@ int eigrp_write(struct thread *thread)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
if (ep->length < EIGRP_HEADER_LEN) {
|
if (ep->length < EIGRP_HEADER_LEN) {
|
||||||
flog_err(EIGRP_ERR_PACKET,
|
flog_err(EC_EIGRP_PACKET,
|
||||||
"%s: Packet just has a header?", __PRETTY_FUNCTION__);
|
"%s: Packet just has a header?", __PRETTY_FUNCTION__);
|
||||||
eigrp_header_dump((struct eigrp_header *)ep->s->data);
|
eigrp_header_dump((struct eigrp_header *)ep->s->data);
|
||||||
eigrp_packet_delete(ei);
|
eigrp_packet_delete(ei);
|
||||||
|
@ -170,7 +170,7 @@ void eigrp_reply_receive(struct eigrp *eigrp, struct ip *iph,
|
|||||||
if (!dest) {
|
if (!dest) {
|
||||||
char buf[PREFIX_STRLEN];
|
char buf[PREFIX_STRLEN];
|
||||||
|
|
||||||
flog_err(EIGRP_ERR_PACKET,
|
flog_err(EC_EIGRP_PACKET,
|
||||||
"%s: Received prefix %s which we do not know about",
|
"%s: Received prefix %s which we do not know about",
|
||||||
__PRETTY_FUNCTION__,
|
__PRETTY_FUNCTION__,
|
||||||
prefix2str(&dest_addr, buf, sizeof(buf)));
|
prefix2str(&dest_addr, buf, sizeof(buf)));
|
||||||
|
Loading…
Reference in New Issue
Block a user