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 BGP_ERR_ATTR_FLAG
= BGP_FERR_START
,
31 BGP_ERR_ATTR_MAL_AS_PATH
,
32 BGP_ERR_ATTR_FIRST_AS
,
33 BGP_ERR_ATTR_MARTIAN_NH
,
34 BGP_ERR_ATTR_PMSI_TYPE
,
35 BGP_ERR_ATTR_PMSI_LEN
,
36 BGP_ERR_ATTR_NH_SEND_LEN
,
42 BGP_ERR_JSON_MEM_ERROR
,
43 BGP_ERR_UPDGRP_ATTR_LEN
,
44 BGP_ERR_UPDGRP_CREATE
,
48 BGP_ERR_INVALID_STATUS
,
65 BGP_ERR_EVPN_ROUTE_DELETE
,
67 BGP_ERR_EVPN_ROUTE_INVALID
,
68 BGP_ERR_EVPN_ROUTE_CREATE
,
70 BGP_ERR_MULTI_INSTANCE
,
71 BGP_ERR_EVPN_AS_MISMATCH
,
72 BGP_ERR_EVPN_INSTANCE_MISMATCH
,
73 BGP_ERR_FLOWSPEC_PACKET
,
74 BGP_ERR_FLOWSPEC_INSTALLATION
,
75 BGP_WARN_ASPATH_FEWER_HOPS
,
76 BGP_WARN_DEFUNCT_SNPA_LEN
,
77 BGP_WARN_MISSING_ATTRIBUTE
,
78 BGP_WARN_ATTRIBUTE_TOO_SMALL
,
79 BGP_WARN_EXT_ATTRIBUTE_TOO_SMALL
,
80 BGP_WARN_ATTRIBUTE_REPEATED
,
81 BGP_WARN_ATTRIBUTE_TOO_LARGE
,
82 BGP_WARN_ATTRIBUTE_PARSE_ERROR
,
83 BGP_WARN_ATTRIBUTE_PARSE_WITHDRAW
,
84 BGP_WARN_ATTRIBUTE_FETCH_ERROR
,
85 BGP_WARN_ATTRIBUTES_MISMATCH
,
87 BGP_WARN_UPDATE_PACKET_SHORT
,
88 BGP_WARN_UPDATE_PACKET_LONG
,
89 BGP_WARN_UNRECOGNIZED_CAPABILITY
,
91 BGP_WARN_NO_SOCKOPT_MARK
,
92 BGP_WARN_EVPN_PMSI_PRESENT
,
93 BGP_WARN_EVPN_VPN_VNI
,
95 BGP_WARN_INVALID_LABEL_STACK
,
97 BGP_WARN_CAPABILITY_INVALID_LENGTH
,
98 BGP_WARN_CAPABILITY_INVALID_DATA
,
99 BGP_WARN_CAPABILITY_VENDOR
,
100 BGP_WARN_CAPABILITY_UNKNOWN
,
101 BGP_WARN_INVALID_NEXTHOP_LENGTH
,
104 extern void bgp_error_init(void);