libbgp  0.6
A C++ BGP Library.
bgp-errcode.h
Go to the documentation of this file.
1 
11 #ifndef BGP_ERRCODE_H_
12 #define BGP_ERRCODE_H_
13 
14 namespace libbgp {
15 
16 extern const char *bgp_error_code_str[7];
17 extern const char* bgp_header_error_subcode_str[4];
18 extern const char *bgp_open_error_subcode_str[8];
19 extern const char *bgp_update_error_str[12];
20 extern const char *bgp_fsm_error_str[4];
21 extern const char *bgp_cease_error_str[9];
22 
28  E_UNSPEC = 0,
29  E_HEADER = 1, // Message Header Error
30  E_OPEN = 2, // OPEN Message Error
31  E_UPDATE = 3, // UPDATE Message Error
32  E_HOLD = 4, // Hold Timer Expired
33  E_FSM = 5, // Finite State Machine Error
34  E_CEASE = 6 // Cease
35 };
36 
42  E_UNSPEC_HEADER = 0,
43  E_SYNC = 1, // Connection Not Synchronized
44  E_LENGTH = 2, // Bad Message Length
45  E_TYPE = 3 // Bad Message Type
46 };
47 
53  E_UNSPEC_OPEN = 0,
54  E_VERSION = 1, // Unsupported Version Number
55  E_PEER_AS = 2, // Bad Peer AS
56  E_BGP_ID = 3, // Bad Peer BGP ID
57  E_OPT_PARAM = 4, // Unsupported Optional Parameter
58  E_AUTH_FAILED = 5, // Authentication Failure (Deprecated)
59  E_HOLD_TIME = 6, // Unacceptable Hold Time
60  E_CAPABILITY = 7 // Unsupported Capability
61 };
62 
68  E_UNSPEC_UPDATE = 0,
69  E_ATTR_LIST = 1, // Malformed Attribute List
70  E_BAD_WELL_KNOWN = 2, // Unrecognized Well-known Attribute
71  E_MISS_WELL_KNOWN = 3, // Missing Well-known Attribute
72  E_ATTR_FLAG = 4, // Attribute Flags Error
73  E_ATTR_LEN = 5, // Attribute Length Error
74  E_ORIGIN = 6, // Invalid ORIGIN Attribute
75  E_AS_LOOP = 7, // AS Routing Loop (Deprecated)
76  E_NEXT_HOP = 8, // Invalid NEXT_HOP Attribute
77  E_OPT_ATTR = 9, // Optional Attribute Error
78  E_NETFIELD = 10, // Invalid Network Field
79  E_AS_PATH = 11 // Malformed AS_PATH
80 };
81 
87  E_UNSPEC_FSM = 0,
88  E_OPEN_SENT = 1, // Receive Unexpected Message in OpenSent State
89  E_OPEN_CONFIRM = 2, // Receive Unexpected Message in OpenConfirm State
90  E_ESTABLISHED = 3 // Receive Unexpected Message in Established State
91 };
92 
98  E_UNSPEC_CEASE = 0,
99  E_MAX_PREFIX = 1, // Maximum Number of Prefixes Reached
100  E_SHUTDOWN = 2, // Administrative Shutdown
101  E_DECONF = 3, // Peer De-configured
102  E_RESET = 4, // Administrative Reset
103  E_REJECT = 5, // Connection Rejected
104  E_CONFGCHANGE = 6, // Other Configuration Change
105  E_COLLISION = 7, // Connection Collision Resolution
106  E_RESOURCES = 8 // Out of Resources
107 };
108 
109 }
110 
111 #endif // BGP_ERRCODE_H_
BgpCeaseErrorSubcode
BGP cease error subcodes.
Definition: bgp-errcode.h:97
const char * bgp_error_code_str[7]
Error strings for BGP error codes.
Definition: bgp-errcode.cc:19
BgpUpdateErrorSubcode
BGP update message error subcodes.
Definition: bgp-errcode.h:67
BgpErrorCode
BGP Error codes.
Definition: bgp-errcode.h:27
const char * bgp_fsm_error_str[4]
Error strings for BGP FSM error subcodes.
Definition: bgp-errcode.cc:78
const char * bgp_cease_error_str[9]
Error strings for BGP cease error subcodes.
Definition: bgp-errcode.cc:89
const char * bgp_open_error_subcode_str[8]
Error strings for BGP open message error subcodes.
Definition: bgp-errcode.cc:44
Definition: bgp-afi.h:14
const char * bgp_update_error_str[12]
Error strings for BGP update message error subcodes.
Definition: bgp-errcode.cc:59
BgpOpenErrorSubcode
BGP open message error subcodes.
Definition: bgp-errcode.h:52
BgpHeaderErrorSubcode
BGP header error subcodes.
Definition: bgp-errcode.h:41
const char * bgp_header_error_subcode_str[4]
Error strings for BGP header error subcodes.
Definition: bgp-errcode.cc:33
BgpFsmErrorSubcode
BGP FSm error subcodes.
Definition: bgp-errcode.h:86