mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-21 20:34:17 +08:00
commit
01efbd563b
@ -548,6 +548,8 @@ impl SchemeMut for Tcpd {
|
||||
let ip = new_handle.create_ip(self.rng.gen(), tcp.to_bytes());
|
||||
self.tcp_file.write(&ip.to_bytes()).map_err(|err| Error::new(err.raw_os_error().unwrap_or(EIO))).and(Ok(buf.len()))?;
|
||||
|
||||
new_handle.seq += 1;
|
||||
|
||||
Handle::Tcp(new_handle)
|
||||
} else {
|
||||
return Err(Error::new(EINVAL));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user