GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - donaldsharp/rtrlib: An open-source C implementation of the RPKI/Router Protocol client

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

799 Commits
799 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
cmake
cmake
 
 
debian
debian
 
 
doxygen
doxygen
 
 
redhat/SPECS
redhat/SPECS
 
 
rtrlib
rtrlib
 
 
scripts
scripts
 
 
tests
tests
 
 
third-party
third-party
 
 
tools
tools
 
 
.clang-format
.clang-format
 
 
.codecov.yml
.codecov.yml
 
 
.editorconfig
.editorconfig
 
 
.git-blame-ignore
.git-blame-ignore
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CHANGELOG
CHANGELOG
 
 
CMakeLists.txt
CMakeLists.txt
 
 
CONTRIBUTING
CONTRIBUTING
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 

Repository files navigation

Build Status GitHub release License API docs Wiki Read the Docs Help wanted

Introduction

The RTRlib implements the client-side of the RPKI-RTR protocol (RFC 6810), (RFC 8210), BGP Prefix Origin Validation (RFC 6811), and ASPA-based Route Leak detection (Rev. 18). This also enables the maintenance of router keys. Router keys are required to deploy BGPSEC.

The software was successfully tested on Linux and FreeBSD.

This package contains also the rtrclient program. It connects to an RTR-Server over TCP or SSH and shows on STDOUT prefix origin data and router keys that have been received from the RTR server. The program can be found in the bin/ directory.

Requirements

To build the RTRlib, the CMake build system must be installed.

To establish an SSH connection between RTR-Client and RTR-Server, the libssh 0.6.x or higher library must also be installed.

To enable BGPsec support for validating and signing AS paths, libssl 1.0 or higher needs to be installed.

cmocka (optional) is required for unit tests Doxygen (optional) is required to create the HTML documentation.

Compilation

  • Generate Makefile:

    Without debugging options

    cmake -D CMAKE_BUILD_TYPE=Release .
    

    With debug symbols and debug messages:

    cmake -D CMAKE_BUILD_TYPE=Debug .
    

    If the libssh isn't installed within the systems include and library directories you can run cmake with the following parameters:

    -D LIBSSH_LIBRARIES=<path-to-libssh.so>
    -D LIBSSH_INCLUDE_DIRS=<include-directory>
    

    If libssh is installed but you do not want to build rtrlib with ssh support, you can disable it with the following parameter:

    -D RTRLIB_TRANSPORT_SSH=No
    

    Or to enforce ssh support:

    -D RTRLIB_TRANSPORT_SSH=Yes
    

    To specify another directory where the RTRlib will be installed, you can pass the following argument to cmake:

    -D CMAKE_INSTALL_PREFIX=<path>
    

    BGPsec support is enabled by default. If dependencies cannot be resolved, rtrlib builds without BGPsec.

    To explicitly disable BGPsec:

    -D WITH_BGPSEC=No
    

    To explicitly enable BGPsec and fail the build if dependencies cannot be resolved:

    -D WITH_BGPSEC=Yes
    
  • Build library, tests, and tools

    make
    

Installation

To copy libraries and headers to system directories, run (optional):

make install

Linking to RTRlib

The name of the shared library is rtr. To link programs to the RTRlib, pass the following parameter to gcc:

-lrtr

In case an error such as

-/usr/bin/ld: cannot find -lrtr
-collect2: error: ld returned 1 exit status

occurs, the location of the library can be passed explicitly as a parameter

-L<path_to_librtr.so>

e.g.,

-L/usr/local/lib64/

API Documentation

The RTRlib includes a HTML documentation of the API. To build them, doxygen must be installed. The documentation will be located in the docs/ directory after the execution of:

make doc

Test RTR-Server Connection

The following command establishes a plain TCP connection to an RTR-Server using the rtrclient command line tool:

bin/rtrclient tcp rpki-validator.realmv6.org 8282

rpki-cache.netd.cs.tu-dresden.de is an open RTR-Server instance for testing purposes, which runs the RIPE Validator. It listens on port 3323 and validates ROAs from the following trust anchors: AfriNIC, APNIC, ARIN, LACNIC, RIPE.

Directories

  • cmake/ - CMake modules
  • doxygen/ - Example code and graphics used in the Doxygen documentation
  • rtrlib/ - Header and source code files of the RTRlib
  • tests/ - Unit tests
  • tools/ - Contains the rtrclient

CONTRIBUTE

To contribute something to RTRlib, please refer to our contributing document.

Contact

Website: http://rtrlib.realmv6.org/

Mailing List: [email protected]

About

An open-source C implementation of the RPKI/Router Protocol client

rtrlib.realmv6.org/

Resources

Readme
License

Contributing

Contributing

Security policy

Security policy
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.