mirage-tcpip

repository·main·Indexed 18 days ago

https://github.com/mirage/mirage-tcpip

An OCaml TCP/IP networking stack for the Mirage operating system (unikernels), providing core protocol implementations for IP (IPv4 and IPv6), ICMP, UDP, and TCP. It includes a 'direct' stack for unikernels running on hypervisors and a 'socket' stack for testing or traditional operating system environments.

Tokens
227
Snippets
0
Records
2
Agent score
13%

What's inside mirage-tcpip

  1. Choosing between the `socket` and `direct` stack implementations

    main

    mirage-tcpip offers two distinct implementation paths depending on your target environment:

    Use the direct stack for most MirageOS applications. It is designed to write directly to a device implementing the NETIF module type. This is the only implementation suitable for applications running as unikernels on a hypervisor target.

    The socket stack (For Testing/Traditional OS)

    Use the socket stack if you are running in a traditional operating system environment rather than as a unikernel. It provides functionality by making socket calls to the host OS. This is primarily used for testing or non-unikernel applications.