libbgp  0.6
A C++ BGP Library.
Variables
bgp-errcode.cc File Reference

BGP error codes. More...

#include "bgp-errcode.h"
Include dependency graph for bgp-errcode.cc:

Go to the source code of this file.

Variables

const char * libbgp::bgp_error_code_str [7]
 Error strings for BGP error codes. More...
 
const char * libbgp::bgp_header_error_subcode_str [4]
 Error strings for BGP header error subcodes. More...
 
const char * libbgp::bgp_open_error_subcode_str [8]
 Error strings for BGP open message error subcodes. More...
 
const char * libbgp::bgp_update_error_str [12]
 Error strings for BGP update message error subcodes. More...
 
const char * libbgp::bgp_fsm_error_str [4]
 Error strings for BGP FSM error subcodes. More...
 
const char * libbgp::bgp_cease_error_str [9]
 Error strings for BGP cease error subcodes. More...
 

Detailed Description

BGP error codes.

Author
Nato Morichika nat@n.nosp@m.at.m.nosp@m.oe
Version
0.1
Date
2019-07-04

Definition in file bgp-errcode.cc.

Variable Documentation

◆ bgp_cease_error_str

const char * libbgp::bgp_cease_error_str
Initial value:
= {
"Unspecific",
"Maximum Number of Prefixes Reached",
"Administrative Shutdown",
"Peer De-configured",
"Administrative Reset",
"Connection Rejected",
"Other Configuration Change",
"Connection Collision Resolution",
"Out of Resources"
}

Error strings for BGP cease error subcodes.

Definition at line 89 of file bgp-errcode.cc.

◆ bgp_error_code_str

const char * libbgp::bgp_error_code_str
Initial value:
= {
"Unspecific",
"Message Header Error",
"OPEN Message Error",
"UPDATE Message Error",
"Hold Timer Expired",
"Finite State Machine Error",
"Cease"
}

Error strings for BGP error codes.

Definition at line 19 of file bgp-errcode.cc.

Referenced by libbgp::BgpNotificationMessage::doPrint().

◆ bgp_fsm_error_str

const char * libbgp::bgp_fsm_error_str
Initial value:
= {
"Unspecific",
"Receive Unexpected Message in OpenSent State",
"Receive Unexpected Message in OpenConfirm State",
"Receive Unexpected Message in Established State"
}

Error strings for BGP FSM error subcodes.

Definition at line 78 of file bgp-errcode.cc.

◆ bgp_header_error_subcode_str

const char * libbgp::bgp_header_error_subcode_str
Initial value:
= {
"Unspecific",
"Connection Not Synchronized",
"Bad Message Length",
"Bad Message Type"
}

Error strings for BGP header error subcodes.

Definition at line 33 of file bgp-errcode.cc.

◆ bgp_open_error_subcode_str

const char * libbgp::bgp_open_error_subcode_str
Initial value:
= {
"Unspecific",
"Unsupported Version Number",
"Bad Peer AS",
"Bad Peer BGP ID",
"Unsupported Optional Parameter",
"Authentication Failure",
"Unacceptable Hold Time",
"Unsupported Capability"
}

Error strings for BGP open message error subcodes.

Definition at line 44 of file bgp-errcode.cc.

◆ bgp_update_error_str

const char * libbgp::bgp_update_error_str
Initial value:
= {
"Unspecific",
"Malformed Attribute List",
"Unrecognized Well-known Attribute",
"Missing Well-known Attribute",
"Attribute Flags Error",
"Attribute Length Error",
"Invalid ORIGIN Attribute",
"AS Routing Loop",
"Invalid NEXT_HOP Attribute",
"Optional Attribute Error",
"Invalid Network Field",
"Malformed AS_PATH"
}

Error strings for BGP update message error subcodes.

Definition at line 59 of file bgp-errcode.cc.