package tcpip

  1. Overview
  2. Docs

Parameters

module N : Mirage_net.S
module E : Mirage_protocols.ETHERNET
module R : Mirage_random.S
module T : Mirage_time.S
module Clock : Mirage_clock.MCLOCK

Signature

include Mirage_protocols.IP with type ipaddr = Ipaddr.V6.t
type error = private [>
  1. | Mirage_protocols.Ip.error
]
val pp_error : error Fmt.t
type ipaddr = Ipaddr.V6.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 : ?no_init:bool -> ?handle_ra:bool -> ?cidr:Ipaddr.V6.Prefix.t -> ?gateway:Ipaddr.V6.t -> N.t -> E.t -> t Lwt.t
OCaml

Innovation. Community. Security.