RTRlib
Loading...
Searching...
No Matches
bgpsec.h File Reference
#include "rtrlib/lib/ip.h"
#include "rtrlib/spki/spkitable.h"
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  rtr_secure_path_seg
 A single Secure Path Segment. More...
 
struct  rtr_signature_seg
 A single Signature Segment. More...
 
struct  rtr_bgpsec_nlri
 This struct contains the Network Layer Reachability Information (NLRI). More...
 
struct  rtr_bgpsec
 The data that is passed to the rtr_mgr_bgpsec_validate_as_path function. More...
 

Macros

#define BGPSEC_IPV4   1
 
#define BGPSEC_IPV6   2
 

Enumerations

enum  rtr_bgpsec_algorithm_suites { RTR_BGPSEC_ALGORITHM_SUITE_1 = 1 }
 All supported algorithm suites. More...
 
enum  rtr_bgpsec_rtvals {
  RTR_BGPSEC_NOT_VALID = 2 , RTR_BGPSEC_VALID = 1 , RTR_BGPSEC_SUCCESS = 0 , RTR_BGPSEC_ERROR = -1 ,
  RTR_BGPSEC_LOAD_PUB_KEY_ERROR = -2 , RTR_BGPSEC_LOAD_PRIV_KEY_ERROR = -3 , RTR_BGPSEC_ROUTER_KEY_NOT_FOUND = -4 , RTR_BGPSEC_SIGNING_ERROR = -5 ,
  RTR_BGPSEC_UNSUPPORTED_ALGORITHM_SUITE = -6 , RTR_BGPSEC_UNSUPPORTED_AFI = -7 , RTR_BGPSEC_WRONG_SEGMENT_COUNT = -8 , RTR_BGPSEC_INVALID_ARGUMENTS = -9
}
 Status codes for various cases. More...