From 34f74c7a37fbae349a4a2721443417cb3bc89f05 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 20 Aug 2018 19:26:59 -0400 Subject: lib: Convert ospf_opaque.c to use the err-card system Signed-off-by: Donald Sharp --- ospfd/ospf_errors.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ospfd/ospf_errors.c') diff --git a/ospfd/ospf_errors.c b/ospfd/ospf_errors.c index ea6199bb44..7c885a8cd0 100644 --- a/ospfd/ospf_errors.c +++ b/ospfd/ospf_errors.c @@ -49,6 +49,18 @@ static struct log_ref ferr_ospf_warn[] = { .description = "OSPF has received data that is causing it to recalculate how large packets should be and has discovered that the packet size needed would be too large and we will need to fragment packets", .suggestion = "Further divide up your network with areas", }, + { + .code = OSPF_WARN_LSA_UNEXPECTED, + .title = "OSPF has received a LSA-type that it was not expecting", + .description = "OSPF has received a LSA-type that it was not expecting during processing", + .suggestion = "Gather log data from this machine and it's peer and open an Issue", + }, + { + .code = OSPF_WARN_LSA, + .title = "OSPF has discovered inconsistent internal state for a LSA", + .description = "During handling of a LSA, OSPF has discovered that the LSA's internal state is inconsistent", + .suggestion = "Gather log data and open an Issue", + }, { .code = END_FERR, } @@ -107,6 +119,7 @@ static struct log_ref ferr_ospf_err[] = { .code = END_FERR, } }; +/* clang-format on */ void ospf_error_init(void) { -- cgit v1.2.3