libbgp  0.6
A C++ BGP Library.
bgp-errcode.cc
Go to the documentation of this file.
1 
11 #include "bgp-errcode.h"
12 
13 namespace libbgp {
14 
19 const char *bgp_error_code_str[7] = {
20  "Unspecific",
21  "Message Header Error",
22  "OPEN Message Error",
23  "UPDATE Message Error",
24  "Hold Timer Expired",
25  "Finite State Machine Error",
26  "Cease"
27 };
28 
33 const char* bgp_header_error_subcode_str[4] = {
34  "Unspecific",
35  "Connection Not Synchronized",
36  "Bad Message Length",
37  "Bad Message Type"
38 };
39 
44 const char *bgp_open_error_subcode_str[8] = {
45  "Unspecific",
46  "Unsupported Version Number",
47  "Bad Peer AS",
48  "Bad Peer BGP ID",
49  "Unsupported Optional Parameter",
50  "Authentication Failure",
51  "Unacceptable Hold Time",
52  "Unsupported Capability"
53 };
54 
59 const char *bgp_update_error_str[12] = {
60  "Unspecific",
61  "Malformed Attribute List",
62  "Unrecognized Well-known Attribute",
63  "Missing Well-known Attribute",
64  "Attribute Flags Error",
65  "Attribute Length Error",
66  "Invalid ORIGIN Attribute",
67  "AS Routing Loop",
68  "Invalid NEXT_HOP Attribute",
69  "Optional Attribute Error",
70  "Invalid Network Field",
71  "Malformed AS_PATH"
72 };
73 
78 const char *bgp_fsm_error_str[4] = {
79  "Unspecific",
80  "Receive Unexpected Message in OpenSent State",
81  "Receive Unexpected Message in OpenConfirm State",
82  "Receive Unexpected Message in Established State"
83 };
84 
89 const char *bgp_cease_error_str[9] = {
90  "Unspecific",
91  "Maximum Number of Prefixes Reached",
92  "Administrative Shutdown",
93  "Peer De-configured",
94  "Administrative Reset",
95  "Connection Rejected",
96  "Other Configuration Change",
97  "Connection Collision Resolution",
98  "Out of Resources"
99 };
100 
101 }
const char * bgp_error_code_str[7]
Error strings for BGP error codes.
Definition: bgp-errcode.cc:19
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
BGP error codes.
const char * bgp_header_error_subcode_str[4]
Error strings for BGP header error subcodes.
Definition: bgp-errcode.cc:33