]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_errors.h
Merge pull request #3370 from pguibert6WIND/default_vrf_initialization
[mirror_frr.git] / bgpd / bgp_errors.h
index 4bfb7af87929baf09a604f650c1852f48a55a7a4..13bd318e274c0484ef17cae0e9dc056bb06ecdf8 100644 (file)
 /*
- * bgp_errors - header for error messages that may occur in the bgp process
+ * BGP-specific error messages.
  * Copyright (C) 2018 Cumulus Networks, Inc.
  *               Don Slice
  *
- * FRR is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the
- * Free Software Foundation; either version 2, or (at your option) any
- * later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the Free
+ * Software Foundation; either version 2 of the License, or (at your option)
+ * any later version.
  *
- * FRR is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+ * more details.
  *
  * You should have received a copy of the GNU General Public License along
  * with this program; see the file COPYING; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
+
 #ifndef __BGP_ERRORS_H__
 #define __BGP_ERRORS_H__
 
-#include "ferr.h"
-#include "bgp_errors.h"
+#include "lib/ferr.h"
 
-enum bgp_ferr_refs {
+enum bgp_log_refs {
 
-       BGP_ERR_ATTR_FLAG = BGP_FERR_START,
-       BGP_ERR_ATTR_LEN,
-       BGP_ERR_ATTR_ORIGIN,
-       BGP_ERR_ATTR_MAL_AS_PATH,
-       BGP_ERR_ATTR_FIRST_AS,
-       BGP_ERR_ATTR_MARTIAN_NH,
-       BGP_ERR_ATTR_PMSI_TYPE,
-       BGP_ERR_ATTR_PMSI_LEN,
-       BGP_ERR_ATTR_NH_SEND_LEN,
-       BGP_ERR_PEER_GROUP,
-       BGP_ERR_PEER_DELETE,
-       BGP_ERR_TABLE_CHUNK,
-       BGP_ERR_MACIP_LEN,
-       BGP_ERR_LM_ERROR,
-       BGP_ERR_JSON_MEM_ERROR,
-       BGP_ERR_UPDGRP_ATTR_LEN,
-       BGP_ERR_UPDGRP_CREATE,
-       BGP_ERR_UPDATE_SND,
-       BGP_ERR_PKT_OPEN,
-       BGP_ERR_SND_FAIL,
-       BGP_ERR_INVALID_STATUS,
-       BGP_ERR_UPDATE_RCV,
-       BGP_ERR_NO_CAP,
-       BGP_ERR_NOTIFY_RCV,
-       BGP_ERR_KEEP_RCV,
-       BGP_ERR_RFSH_RCV,
-       BGP_ERR_CAP_RCV,
-       BGP_ERR_NH_UPD,
-       BGP_ERR_LABEL,
-       BGP_ERR_MULTIPATH,
-       BGP_ERR_PKT_PROCESS,
-       BGP_ERR_CONNECT,
-       BGP_ERR_FSM,
-       BGP_ERR_VNI,
-       BGP_ERR_NO_DFLT,
-       BGP_ERR_VTEP_INVALID,
-       BGP_ERR_ES_INVALID,
-       BGP_ERR_EVPN_ROUTE_DELETE,
-       BGP_ERR_EVPN_FAIL,
-       BGP_ERR_EVPN_ROUTE_INVALID,
-       BGP_ERR_EVPN_ROUTE_CREATE,
-       BGP_ERR_ES_CREATE,
-       BGP_ERR_MULTI_INSTANCE,
-       BGP_ERR_EVPN_AS_MISMATCH,
-       BGP_ERR_EVPN_INSTANCE_MISMATCH,
-       BGP_ERR_FLOWSPEC_PACKET,
-       BGP_ERR_FLOWSPEC_INSTALLATION,
+       EC_BGP_ATTR_FLAG = BGP_FERR_START,
+       EC_BGP_ATTR_LEN,
+       EC_BGP_ATTR_ORIGIN,
+       EC_BGP_ATTR_MAL_AS_PATH,
+       EC_BGP_ATTR_FIRST_AS,
+       EC_BGP_ATTR_MARTIAN_NH,
+       EC_BGP_ATTR_PMSI_TYPE,
+       EC_BGP_ATTR_PMSI_LEN,
+       EC_BGP_ATTR_NH_SEND_LEN,
+       EC_BGP_PEER_GROUP,
+       EC_BGP_PEER_DELETE,
+       EC_BGP_TABLE_CHUNK,
+       EC_BGP_MACIP_LEN,
+       EC_BGP_LM_ERROR,
+       EC_BGP_JSON_MEM_ERROR,
+       EC_BGP_UPDGRP_ATTR_LEN,
+       EC_BGP_UPDGRP_CREATE,
+       EC_BGP_UPDATE_SND,
+       EC_BGP_PKT_OPEN,
+       EC_BGP_SND_FAIL,
+       EC_BGP_INVALID_STATUS,
+       EC_BGP_UPDATE_RCV,
+       EC_BGP_NO_CAP,
+       EC_BGP_NOTIFY_RCV,
+       EC_BGP_KEEP_RCV,
+       EC_BGP_RFSH_RCV,
+       EC_BGP_CAP_RCV,
+       EC_BGP_NH_UPD,
+       EC_BGP_LABEL,
+       EC_BGP_MULTIPATH,
+       EC_BGP_PKT_PROCESS,
+       EC_BGP_CONNECT,
+       EC_BGP_FSM,
+       EC_BGP_VNI,
+       EC_BGP_NO_DFLT,
+       EC_BGP_VTEP_INVALID,
+       EC_BGP_ES_INVALID,
+       EC_BGP_EVPN_ROUTE_DELETE,
+       EC_BGP_EVPN_FAIL,
+       EC_BGP_EVPN_ROUTE_INVALID,
+       EC_BGP_EVPN_ROUTE_CREATE,
+       EC_BGP_ES_CREATE,
+       EC_BGP_MULTI_INSTANCE,
+       EC_BGP_EVPN_AS_MISMATCH,
+       EC_BGP_EVPN_INSTANCE_MISMATCH,
+       EC_BGP_FLOWSPEC_PACKET,
+       EC_BGP_FLOWSPEC_INSTALLATION,
+       EC_BGP_ASPATH_FEWER_HOPS,
+       EC_BGP_DEFUNCT_SNPA_LEN,
+       EC_BGP_MISSING_ATTRIBUTE,
+       EC_BGP_ATTRIBUTE_TOO_SMALL,
+       EC_BGP_EXT_ATTRIBUTE_TOO_SMALL,
+       EC_BGP_ATTRIBUTE_REPEATED,
+       EC_BGP_ATTRIBUTE_TOO_LARGE,
+       EC_BGP_ATTRIBUTE_PARSE_ERROR,
+       EC_BGP_ATTRIBUTE_PARSE_WITHDRAW,
+       EC_BGP_ATTRIBUTE_FETCH_ERROR,
+       EC_BGP_ATTRIBUTES_MISMATCH,
+       EC_BGP_DUMP,
+       EC_BGP_UPDATE_PACKET_SHORT,
+       EC_BGP_UPDATE_PACKET_LONG,
+       EC_BGP_UNRECOGNIZED_CAPABILITY,
+       EC_BGP_NO_TCP_MD5,
+       EC_BGP_NO_SOCKOPT_MARK,
+       EC_BGP_EVPN_PMSI_PRESENT,
+       EC_BGP_EVPN_VPN_VNI,
+       EC_BGP_EVPN_ESI,
+       EC_BGP_INVALID_LABEL_STACK,
+       EC_BGP_ZEBRA_SEND,
+       EC_BGP_CAPABILITY_INVALID_LENGTH,
+       EC_BGP_CAPABILITY_INVALID_DATA,
+       EC_BGP_CAPABILITY_VENDOR,
+       EC_BGP_CAPABILITY_UNKNOWN,
+       EC_BGP_INVALID_NEXTHOP_LENGTH,
+       EC_BGP_DOPPELGANGER_CONFIG,
 };
 
 extern void bgp_error_init(void);