]> git.proxmox.com Git - mirror_frr.git/blob - nhrpd/nhrp_errors.c
nhrpd: Add NHRP_ERR_XXXX for zlog_err to zlog_ferr conversion
[mirror_frr.git] / nhrpd / nhrp_errors.c
1 /*
2 * nhrp_errors - code for error messages that may occur in the
3 * nhrp process
4 * Copyright (C) 2018 Cumulus Networks, Inc.
5 * Donald Sharp
6 *
7 * FRR is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2, or (at your option) any
10 * later version.
11 *
12 * FRR is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program; see the file COPYING; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21 #include <zebra.h>
22
23 #include "nhrp_errors.h"
24
25 static struct ferr_ref ferr_nhrp_err[] = {
26 {
27 .code = NHRP_ERR_SWAN,
28 .title = "NHRP Strong Swan Error",
29 .description = "NHRP has detected a error with the Strongswan code",
30 .suggestion = "Ensure that StrongSwan is configured correctly. Restart StrongSwan and FRR"
31 },
32 {
33 .code = NHRP_ERR_RESOLVER,
34 .title = "NHRP DNS Resolution",
35 .description = "NHRP has detected an error in an attempt to resolve a hostname",
36 .suggestion = "Ensure that DNS is working properly and the hostname is configured in dns. If you are still seeing this error, open an issue"
37 },
38 {
39 .code = END_FERR,
40 }
41 };
42
43 void nhrp_error_init(void)
44 {
45 ferr_ref_init();
46
47 ferr_ref_add(ferr_nhrp_err);
48 }