]> git.proxmox.com Git - mirror_frr.git/blob - pimd/pim_errors.c
pimd: Add pim_errors and define some pim specific errors
[mirror_frr.git] / pimd / pim_errors.c
1 /*
2 * pim_errors - code for error messages that may occur in the
3 * pim 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 "pim_errors.h"
24
25 static struct ferr_ref ferr_pim_err[] = {
26 {
27 .code = PIM_ERR_MSDP_PACKET,
28 .title = "PIM MSDP Packet Error",
29 .description = "PIM has received a packet from a peer that does not correctly decode",
30 .suggestion = "Check MSDP peer and ensure it is correctly working"
31 },
32 {
33 .code = PIM_ERR_CONFIG,
34 .title = "PIM Configuration Error",
35 .description = "Pim has detected a configuration error",
36 .suggestion = "Ensure the configuration is correct and apply correct configuration"
37 },
38 {
39 .code = END_FERR,
40 }
41 };
42
43 void pim_error_init(void)
44 {
45 ferr_ref_init();
46
47 ferr_ref_add(ferr_pim_err);
48 }