Module bgpd_rs::utils [−][src]
Expand description
Misc BGP Message & Peer processing utilities
Structs
Enums
Functions
Convert an ASN string to a u32 E.g. “65000.100” -> 42598400100
Convert first 16 bytes (1 IPv6 address) to IpAddr TODO: Handle multiple next hops Can they be variable length?
Given a duration, format like “00:00:00”
Given a timestamp, get the elapsed time and return formatted string
Convert a CIDR prefix (E.g. “192.168.0.0/24”) to a bgp_rs::Prefix
Convert an ASN (4 byte) as dotted if it exceeds the 2-byte limit E.g. 42598400100 -> “65000.100”