pub struct TcpSynOptions {
pub mss: Option<u16>,
pub wscale: Option<u8>,
pub sack_permitted: bool,
pub timestamps: bool,
}Expand description
Peer TCP options observed on an incoming SYN or SYN-ACK frame.
Captured so the handshake synthesizer can mirror the peer’s negotiated options back in its SYN-ACK response (or record them for later use).
Fields§
§mss: Option<u16>Maximum Segment Size advertised by the peer. None if the option
was absent (RFC 9293 §3.7.1 says default 536, but we treat absence
as “use our default”).
wscale: Option<u8>Window scale shift count (0–14). None if the peer did not advertise it.
sack_permitted: boolWhether the peer included SACK-Permitted.
timestamps: boolWhether the peer included Timestamps. We do not echo these back — both endpoints must send TSopt in their SYN for it to be used (RFC 7323 §3.1), so not echoing disables timestamps cleanly.
Trait Implementations§
Source§impl Clone for TcpSynOptions
impl Clone for TcpSynOptions
Source§fn clone(&self) -> TcpSynOptions
fn clone(&self) -> TcpSynOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TcpSynOptions
Source§impl Debug for TcpSynOptions
impl Debug for TcpSynOptions
Source§impl Default for TcpSynOptions
impl Default for TcpSynOptions
Source§fn default() -> TcpSynOptions
fn default() -> TcpSynOptions
Returns the “default value” for a type. Read more
impl Eq for TcpSynOptions
Source§impl PartialEq for TcpSynOptions
impl PartialEq for TcpSynOptions
impl StructuralPartialEq for TcpSynOptions
Auto Trait Implementations§
impl Freeze for TcpSynOptions
impl RefUnwindSafe for TcpSynOptions
impl Send for TcpSynOptions
impl Sync for TcpSynOptions
impl Unpin for TcpSynOptions
impl UnsafeUnpin for TcpSynOptions
impl UnwindSafe for TcpSynOptions
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