tcpip

OCaml TCP/IP networking stack, used in MirageOS
README

mirage-tcpip provides a networking stack for the Mirage operating
system
. It provides implementations for the following module types
(which correspond with the similarly-named protocols):

  • IP (via the IPv4 and IPv6 modules)

  • ICMP

  • UDP

  • TCP

Implementations

There are two implementations of the IP, ICMP, UDP, and TCP module types -
the socket stack, and the direct stack.

The socket stack

The socket stack uses socket calls to a traditional operating system to
provide the functionality described in the module types.

See the src/stack-unix/ directory for the modules used as implementations of the
socket stack.

The socket stack is used for testing or other applications which do not
expect to run as unikernels.

The direct stack

The direct stack expects to write to a device implementing the NETIF module
type defined for MirageOS.

See the src/ directory for the modules used as implementations of the
direct stack, which is the expected stack for most MirageOS applications.

The direct stack is the only usable set of implementations for
applications which will run as unikernels on a hypervisor target.

Community

License

mirage-tcpip is distributed under the ISC license.

Install
Published
24 May 2022
Maintainers
Sources
tcpip-7.1.1.tbz
sha256=5dda5d53610187e426fc659e35515d01e54e9cce41e6ead3f32f162867b2c1d0
sha512=a1d98ef57b0ffb3fc4a1b18e7e24cd8c3cb39a16798506e87afe8a906261e8526ed373bd1421697ca60595a05bd936ed337048f9d07b1ac5c4d50156b7832d8a
Dependencies
lru
>= "0.3.0"
mirage-random-test
with-test & >= "0.1.0"
mirage-clock-unix
with-test & >= "3.0.0"
pcap-format
with-test
alcotest
with-test & >= "0.7.0"
mirage-vnetif
with-test & >= "0.5.0"
mirage-flow
>= "2.0.0"
arp
>= "3.0.0"
ethernet
>= "3.0.0"
logs
>= "0.6.0"
lwt
>= "4.0.0"
fmt
>= "0.8.7"
macaddr
>= "4.0.0"
ipaddr
>= "5.0.0"
mirage-time
>= "2.0.0"
mirage-random
>= "2.0.0"
mirage-clock
>= "3.0.0"
mirage-net
>= "3.0.0"
cstruct
>= "6.0.0"
ocaml
>= "4.08.0"
bisect_ppx
dev & >= "2.5.0"
dune
>= "2.7.0"
Reverse Dependencies
arp
< "0.2.0"
capnp-rpc-mirage
>= "0.3.2" & < "0.6.0" | >= "0.9.0" & < "1.1" | >= "1.2.2"
charrua
>= "1.5.0"
charrua-client
>= "1.4.0"
charrua-client-lwt
>= "0.11.1" & < "0.12.0"
charrua-client-mirage
>= "0.11.1" & < "0.12.0"
charrua-core
>= "0.11.2"
charrua-server
>= "1.4.0"
charrua-unix
>= "1.4.0"
conduit
= "0.10.0"
conduit-mirage
>= "2.3.0"
dns-certify
>= "6.1.3"
dns-client
>= "6.1.3"
dns-mirage
>= "6.1.3"
dns-resolver
>= "6.1.3"
dns-server
>= "6.1.3"
dns-stub
>= "6.1.3"
frenetic
>= "5.0.0" & < "5.0.5"
git-mirage
>= "3.7.0"
git-paf
>= "3.7.0"
git-unix
>= "3.0.0"
mirage-conduit
>= "2.0.0" & < "2.2.0"
mirage-dns
< "2.6.0"
mirage-nat
>= "2.2.4"
mirage-stack
>= "4.0.0"
mirage-www
>= "1.1.0"
packet
>= "0.4.0"
paf-le
>= "0.0.8"
vpnkit
>= "0.1.1"