package tcpip

  1. Overview
  2. Docs

Description

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

Tags

org:mirage

Published: 22 Jun 2020

README

mirage-tcpip - an OCaml TCP/IP networking stack

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.

Dependencies (26)

  1. lru >= "0.3.0"
  2. mirage-flow >= "2.0.0" & < "4.0.0"
  3. ethernet >= "2.0.0" & < "3.0.0"
  4. randomconv < "0.2.0"
  5. duration
  6. logs >= "0.6.0"
  7. lwt-dllist
  8. lwt >= "4.0.0"
  9. fmt >= "0.8.0"
  10. mirage-profile >= "0.5"
  11. macaddr-cstruct
  12. macaddr >= "4.0.0"
  13. ipaddr >= "5.0.0"
  14. mirage-time >= "2.0.0"
  15. mirage-protocols >= "4.0.0" & < "5.0.0"
  16. mirage-stack >= "2.0.0" & < "4.0.0"
  17. mirage-random >= "2.0.0" & < "4.0.0"
  18. mirage-clock >= "3.0.0"
  19. mirage-net >= "3.0.0"
  20. cstruct-lwt
  21. cstruct >= "3.2.0" & < "6.1.0"
  22. rresult >= "0.5.0"
  23. result
  24. ocaml >= "4.06.0"
  25. dune-configurator
  26. dune

Dev Dependencies

None

Used by (20)

  1. arp < "0.2.0"
  2. caldav
  3. capnp-rpc-mirage >= "0.3.2" & < "0.6.0" | >= "0.8.0" & < "1.1"
  4. caqti-mirage < "2.1.2"
  5. charrua >= "1.2.2" & < "1.5.0"
  6. charrua-client-lwt >= "0.11.1" & < "0.12.0"
  7. charrua-client-mirage >= "0.11.1" & < "0.12.0"
  8. charrua-core >= "0.11.2"
  9. conduit = "0.10.0"
  10. frenetic >= "5.0.0" & < "5.0.5"
  11. git-mirage >= "2.0.0" & < "3.0.0"
  12. mirage-conduit >= "2.0.0" & < "2.2.0"
  13. mirage-dns < "2.6.0"
  14. mirage-nat >= "2.1.0" & < "2.2.5"
  15. mirage-qubes-ipv4 >= "0.8.3" & < "0.9.2"
  16. mirage-www >= "1.1.0"
  17. packet >= "0.4.0"
  18. spoke >= "0.0.3"
  19. tftp
  20. vpnkit >= "0.1.1"

Conflicts

None

OCaml

Innovation. Community. Security.