2 * BGP-specific error messages.
3 * Copyright (C) 2018 Cumulus Networks, Inc.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * You should have received a copy of the GNU General Public License along
17 * with this program; see the file COPYING; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef __BGP_ERRORS_H__
22 #define __BGP_ERRORS_H__
28 EC_BGP_ATTR_FLAG
= BGP_FERR_START
,
31 EC_BGP_ATTR_MAL_AS_PATH
,
33 EC_BGP_ATTR_MARTIAN_NH
,
34 EC_BGP_ATTR_PMSI_TYPE
,
36 EC_BGP_ATTR_NH_SEND_LEN
,
42 EC_BGP_JSON_MEM_ERROR
,
43 EC_BGP_UPDGRP_ATTR_LEN
,
48 EC_BGP_INVALID_STATUS
,
65 EC_BGP_EVPN_ROUTE_DELETE
,
67 EC_BGP_EVPN_ROUTE_INVALID
,
68 EC_BGP_EVPN_ROUTE_CREATE
,
70 EC_BGP_EVPN_AS_MISMATCH
,
71 EC_BGP_EVPN_INSTANCE_MISMATCH
,
72 EC_BGP_FLOWSPEC_PACKET
,
73 EC_BGP_FLOWSPEC_INSTALLATION
,
74 EC_BGP_ASPATH_FEWER_HOPS
,
75 EC_BGP_DEFUNCT_SNPA_LEN
,
76 EC_BGP_MISSING_ATTRIBUTE
,
77 EC_BGP_ATTRIBUTE_TOO_SMALL
,
78 EC_BGP_EXT_ATTRIBUTE_TOO_SMALL
,
79 EC_BGP_ATTRIBUTE_REPEATED
,
80 EC_BGP_ATTRIBUTE_TOO_LARGE
,
81 EC_BGP_ATTRIBUTE_PARSE_ERROR
,
82 EC_BGP_ATTRIBUTE_PARSE_WITHDRAW
,
83 EC_BGP_ATTRIBUTE_FETCH_ERROR
,
84 EC_BGP_ATTRIBUTES_MISMATCH
,
86 EC_BGP_UPDATE_PACKET_SHORT
,
87 EC_BGP_UPDATE_PACKET_LONG
,
88 EC_BGP_UNRECOGNIZED_CAPABILITY
,
90 EC_BGP_EVPN_PMSI_PRESENT
,
93 EC_BGP_INVALID_LABEL_STACK
,
95 EC_BGP_CAPABILITY_INVALID_LENGTH
,
96 EC_BGP_CAPABILITY_INVALID_DATA
,
97 EC_BGP_CAPABILITY_VENDOR
,
98 EC_BGP_CAPABILITY_UNKNOWN
,
99 EC_BGP_INVALID_NEXTHOP_LENGTH
,
100 EC_BGP_DOPPELGANGER_CONFIG
,
101 EC_BGP_ROUTER_ID_SAME
,
102 EC_BGP_INVALID_BGP_INSTANCE
,
103 EC_BGP_INVALID_ROUTE
,
106 extern void bgp_error_init(void);