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
04 May 2019
Maintainers
Sources
tcpip-v3.7.5.tbz
sha256=1d5a567c47cec52764f639ba9f5b09af43a732008e1004cae29b093618f634f0
sha512=642e31adefe782a15d1526487460570444508b27a0361e4637ea81603b14d9a097250530fc15d8f7f92e7a7b4282c435e4dbf37dafb65d1a38eb7a3b321e8ab4
Dependencies
lru
>= "0.3.0"
arp-mirage
with-test & >= "2.0.0"
mirage-clock-unix
with-test & >= "1.2.0"
pcap-format
with-test
alcotest
with-test & >= "0.7.0" & < "1.4.0"
mirage-vnetif
with-test & >= "0.4.0"
mirage-flow
with-test & >= "1.2.0" & < "2.0.0"
ethernet
>= "2.0.0" & < "3.0.0"
logs
>= "0.6.0"
lwt
>= "3.0.0" & < "5.0.0"
fmt
>= "0.8.0"
macaddr
< "4.0.0"
ipaddr
>= "3.0.0"
mirage-protocols-lwt
>= "2.0.0" & < "3.0.0"
mirage-protocols
>= "2.0.0" & < "3.0.0"
mirage-random
>= "1.0.0" & < "2.0.0"
mirage-clock
>= "1.2.0" & < "3.0.0"
mirage-net-lwt
>= "2.0.0"
cstruct
>= "3.2.0"
rresult
>= "0.5.0"
ocaml
>= "4.03.0"
dune
>= "1.0"
Reverse Dependencies
arp
< "0.2.0"
capnp-rpc-mirage
>= "0.3.2" & < "0.8.0"
charrua
< "1.2.0"
charrua-client-lwt
>= "0.11.1" & < "0.12.0"
charrua-client-mirage
>= "0.11.1" & < "0.12.0"
charrua-core
>= "0.11.2"
conduit
= "0.10.0"
frenetic
>= "5.0.0" & < "5.0.5"
git-mirage
>= "2.0.0" & < "3.0.0"
mirage-conduit
>= "2.0.0" & < "2.2.0"
mirage-dns
< "2.6.0"
mirage-nat
>= "1.1.0" & < "2.0.0"
mirage-qubes-ipv4
>= "0.6" & < "0.8.0"
mirage-www
>= "1.1.0"
packet
>= "0.4.0"
vpnkit
>= "0.1.1"