summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_errors.h
blob: f7db77ac387fa8026cc2f02e8796effef818e956 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/*
 * BGP-specific error messages.
 * Copyright (C) 2018 Cumulus Networks, Inc.
 *               Don Slice
 *
 * 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.
 *
 * 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 "lib/ferr.h"

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_UPD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_WARN_UNRECOGNIZED_CAPABILITY,
	BGP_WARN_NO_TCP_MD5,
	BGP_WARN_NO_SOCKOPT_MARK,
	BGP_WARN_EVPN_PMSI_PRESENT,
	BGP_WARN_EVPN_VPN_VNI,
	BGP_WARN_EVPN_ESI,
	BGP_WARN_INVALID_LABEL_STACK,
	BGP_WARN_ZEBRA_SEND,
	BGP_WARN_CAPABILITY_INVALID_LENGTH,
	BGP_WARN_CAPABILITY_INVALID_DATA,
	BGP_WARN_CAPABILITY_VENDOR,
	BGP_WARN_CAPABILITY_UNKNOWN,
	BGP_WARN_INVALID_NEXTHOP_LENGTH,
};

extern void bgp_error_init(void);

#endif