diff --git a/j b/j new file mode 100644 index 0000000..075a1f5 Binary files /dev/null and b/j differ diff --git a/src/lib.rs b/src/lib.rs index e212e39..3c76e04 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -116,7 +116,7 @@ impl IpStack { Vacant(entry) => { match packet.transport_protocol(){ IpStackPacketProtocol::Tcp(h) => { - match IpStackTcpStream::new(packet.src_addr(),packet.dst_addr(),h, pkt_sender.clone(),config.mtu,config.tcp_timeout).await{ + match IpStackTcpStream::new(packet.src_addr(),packet.dst_addr(),h, pkt_sender.clone(),config.mtu,config.tcp_timeout){ Ok(stream) => { entry.insert(stream.stream_sender()); accept_sender.send(IpStackStream::Tcp(stream))?; diff --git a/src/stream/tcp.rs b/src/stream/tcp.rs index ceef701..59438d1 100644 --- a/src/stream/tcp.rs +++ b/src/stream/tcp.rs @@ -66,7 +66,7 @@ pub struct IpStackTcpStream { } impl IpStackTcpStream { - pub(crate) async fn new( + pub(crate) fn new( src_addr: SocketAddr, dst_addr: SocketAddr, tcp: TcpPacket,