Searched refs:TcpOption (Results 1 – 2 of 2) sorted by relevance
304 let (next_options, option) = TcpOption::parse(options)?; in selective_ack_permitted()305 if option == TcpOption::SackPermitted { in selective_ack_permitted()320 let (next_options, option) = TcpOption::parse(options)?;321 if let TcpOption::SackRange(slice) = option {596 pub enum TcpOption<'a> { enum606 impl<'a> TcpOption<'a> { impl607 pub fn parse(buffer: &'a [u8]) -> Result<(&'a [u8], TcpOption<'a>)> { in parse()612 option = TcpOption::EndOfList; in parse()616 option = TcpOption::NoOperation; in parse()624 option = TcpOption::MaxSegmentSize(NetworkEndian::read_u16(data)) in parse()[all …]
243 TcpOption, HEADER_LEN as TCP_HEADER_LEN,