bgpkit_parser/parser/rpki/
mod.rs

1//! RPKI (Resource Public Key Infrastructure) protocol parsers.
2//!
3//! This module provides parsing and encoding functions for RPKI-related protocols:
4//!
5//! - [`rtr`]: RPKI-to-Router (RTR) Protocol parsing and encoding (RFC 6810, RFC 8210)
6//!
7//! # Example
8//!
9//! ```rust
10//! use bgpkit_parser::parser::rpki::rtr::{parse_rtr_pdu, RtrEncode};
11//! use bgpkit_parser::models::rpki::rtr::*;
12//!
13//! // Create and encode a Reset Query
14//! let query = RtrResetQuery::new_v1();
15//! let bytes = query.encode();
16//!
17//! // Parse the bytes back
18//! let (pdu, _) = parse_rtr_pdu(&bytes).unwrap();
19//! assert!(matches!(pdu, RtrPdu::ResetQuery(_)));
20//! ```
21
22pub mod rtr;
23
24pub use rtr::*;