routecore 0.7.1

A Library with Building Blocks for BGP Routing
Documentation
1
2
3
4
5
6
7
8
9
#![allow(dead_code)]

pub fn to_pcap<T: AsRef<[u8]>>(msg: T) -> String {
    let mut res = String::from("000000 ");
    for b in msg.as_ref() {
        res.push_str(&format!("{b:02x} "));
    }
    res
}