package tcpip

  1. Overview
  2. Docs

Parameters

module Ipv4 : Mirage_protocols.IPV4
module Ipv6 : Mirage_protocols.IPV6

Signature

include Mirage_protocols.IP with type ipaddr = Ipaddr.t
type error = private [>
  1. | Mirage_protocols.Ip.error
]
val pp_error : error Fmt.t
type ipaddr = Ipaddr.t
val pp_ipaddr : ipaddr Fmt.t
type t
val disconnect : t -> unit Lwt.t
type callback = src:ipaddr -> dst:ipaddr -> Cstruct.t -> unit Lwt.t
val input : t -> tcp:callback -> udp:callback -> default:(proto:int -> callback) -> Cstruct.t -> unit Lwt.t
val write : t -> ?fragment:bool -> ?ttl:int -> ?src:ipaddr -> ipaddr -> Mirage_protocols.Ip.proto -> ?size:int -> (Cstruct.t -> int) -> Cstruct.t list -> (unit, error) Stdlib.result Lwt.t
val pseudoheader : t -> ?src:ipaddr -> ipaddr -> Mirage_protocols.Ip.proto -> int -> Cstruct.t
val src : t -> dst:ipaddr -> ipaddr
val get_ip : t -> ipaddr list
val mtu : t -> dst:ipaddr -> int
val connect : ipv4_only:bool -> ipv6_only:bool -> Ipv4.t -> Ipv6.t -> t Lwt.t
OCaml

Innovation. Community. Security.