use std::net::Ipv4Addr; pub enum VRRPv2Error {} pub enum VRRPVersion { V2(u8), } pub enum VRRPv2Type { VRRPv2Advertisement, } pub enum VRRPv2AuthType { VRRPv2AuthNoAuth = 0x00, VRRPv2AuthReserved1 = 0x01, VRRPv2AuthReserved2 = 0x02, } pub struct VRRPv2 { pub version: VRRPVersion, pub type_: VRRPv2Type, pub virtual_router_id: u8, pub priority: u8, pub count_ip_addrs: u8, pub auth_type: VRRPv2AuthType, pub advertisement_interval: u8, pub checksum: u16, pub ip_addrs: Vec, } pub fn from_bytes(_bytes: &[u8]) -> Result<&VRRPv2, VRRPv2Error> { unimplemented!() }