]> git.proxmox.com Git - mirror_frr.git/blame - ripd/rip_errors.c
ripd: Add RIP_ERR_XXX to move from zlog_err to zlog_ferr
[mirror_frr.git] / ripd / rip_errors.c
CommitLineData
518e377f
DS
1/*
2 * rip_errors - code for error messages that may occur in the
3 * rip 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 "rip_errors.h"
24
25static struct ferr_ref ferr_rip_err[] = {
26 {
27 .code = RIP_ERR_PACKET,
28 .title = "RIP Packet Error",
29 .description = "RIP has detected a packet encode/decode issue",
30 .suggestion = "Gather log files from both sides and open a Issue"
31 },
32 {
33 .code = END_FERR,
34 }
35};
36
37void rip_error_init(void)
38{
39 ferr_ref_init();
40
41 ferr_ref_add(ferr_rip_err);
42}