tcp_ip

Crates.iotcp_ip
lib.rstcp_ip
version
sourcesrc
created_at2024-12-21 09:57:08.59321+00
updated_at2025-03-19 11:31:04.571087+00
descriptionUser-space TCP/IP stack
homepage
repositoryhttps://github.com/rustp2p/tcp_ip
max_upload_size
id1490884
Cargo.toml error:TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(vnt-dev)

documentation

README

Crates.io tcp_ip

tcp_ip

User-space TCP/IP stack

Features

IPv4

  • IPv4 fragmentation and reassembly is supported.
  • IPv4 options are not supported and are silently ignored.

IPv6

  • In development, currently does not support any extended protocols.

UDP

Use UdpSocket. Supported over IPv4 and IPv6.

ICMPv4 & ICMPv6

Use IcmpSocket or IcmpV6Socket. The user needs to handle the ICMP header themselves and calculate the checksum.

TCP

Use TcpListener and TcpStream. Supported over IPv4 and IPv6.

  • MSS is negotiated
  • Window scaling is negotiated.
  • Reassembly of out-of-order segments is supported
  • The timeout waiting time is fixed and can be configured
  • Selective acknowledgements permitted. (Proactively ACK the need for improvement)

Other

Using IpSocket to send and receive packets of other protocols.(Handles all IP upper-layer protocols without requiring the user to consider IP fragmentation.)

example

iperf test

LAN Speed Test

image

Example:Proxy-Windows

image

Example: Proxy-Linux

image

Commit count: 60

cargo fmt