pub struct VxlanTunnel {
pub vni: u32,
pub local_ip: u32,
pub remote_ip: u32,
pub port: u16,
pub mtu: u16,
}Expand description
VXLAN tunnel configuration.
Fields§
§vni: u32VXLAN Network Identifier (24-bit, 0..16777215).
local_ip: u32Local tunnel endpoint IP.
remote_ip: u32Remote tunnel endpoint IP.
port: u16UDP destination port (default 4789).
mtu: u16MTU for the tunnel interface.
Implementations§
Source§impl VxlanTunnel
impl VxlanTunnel
Sourcepub const DEFAULT_PORT: u16 = 4_789u16
pub const DEFAULT_PORT: u16 = 4_789u16
Default VXLAN UDP port.
Sourcepub const DEFAULT_MTU: u16 = 1_450u16
pub const DEFAULT_MTU: u16 = 1_450u16
Default tunnel MTU (1500 - 50 bytes VXLAN overhead).
Trait Implementations§
Source§impl Clone for VxlanTunnel
impl Clone for VxlanTunnel
Source§fn clone(&self) -> VxlanTunnel
fn clone(&self) -> VxlanTunnel
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VxlanTunnel
impl RefUnwindSafe for VxlanTunnel
impl Send for VxlanTunnel
impl Sync for VxlanTunnel
impl Unpin for VxlanTunnel
impl UnwindSafe for VxlanTunnel
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)