// (c) 2020-2022 ZeroTier, Inc. -- currently proprietary pending actual release and licensing. See LICENSE.md. use std::sync::Arc; use crate::protocol::PacketBuffer; use crate::vl1::{HostSystem, InnerProtocol, Node, PacketHandlerResult, Path, Peer}; pub trait SwitchInterface: Sync + Send {} pub struct Switch {} #[allow(unused_variables)] impl InnerProtocol for Switch { fn handle_packet( &self, host_system: &HostSystemImpl, node: &Node, source: &Arc, source_path: &Arc, source_hops: u8, message_id: u64, verb: u8, payload: &PacketBuffer, cursor: usize, ) -> PacketHandlerResult { PacketHandlerResult::NotHandled } fn handle_error( &self, host_system: &HostSystemImpl, node: &Node, source: &Arc, source_path: &Arc, source_hops: u8, message_id: u64, in_re_verb: u8, in_re_message_id: u64, error_code: u8, payload: &PacketBuffer, cursor: usize, ) -> PacketHandlerResult { PacketHandlerResult::NotHandled } fn handle_ok( &self, host_system: &HostSystemImpl, node: &Node, source: &Arc, source_path: &Arc, source_hops: u8, message_id: u64, in_re_verb: u8, in_re_message_id: u64, payload: &PacketBuffer, cursor: usize, ) -> PacketHandlerResult { PacketHandlerResult::NotHandled } } impl Switch {}