pub struct SynParams {
pub src_ip: Ipv4Addr,
pub dst_ip: Ipv4Addr,
pub src_port: u16,
pub dst_port: u16,
pub seq: u32,
pub src_mac: [u8; 6],
pub dst_mac: [u8; 6],
pub mss: u16,
pub wscale: Option<u8>,
}Expand description
Parameters for constructing a TCP SYN frame (active open).
Used when arcbox initiates a TCP connection toward the guest for an inbound port-forward. Only the MSS option is included — WScale and SACK-Permitted are negotiated by the peer echoing them in its SYN-ACK.
Fields§
§src_ip: Ipv4Addr§dst_ip: Ipv4Addr§src_port: u16§dst_port: u16§seq: u32§src_mac: [u8; 6]§dst_mac: [u8; 6]§mss: u16§wscale: Option<u8>Trait Implementations§
Auto Trait Implementations§
impl Freeze for SynParams
impl RefUnwindSafe for SynParams
impl Send for SynParams
impl Sync for SynParams
impl Unpin for SynParams
impl UnsafeUnpin for SynParams
impl UnwindSafe for SynParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more