Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adapt to mirage/mirage#1004 API changes #420

Merged
merged 2 commits into from
Nov 1, 2019
Merged

Conversation

hannesm
Copy link
Member

@hannesm hannesm commented Oct 25, 2019

No description provided.

- ip is a required keyword of type Ipaddr.V4.Prefix.t * Ipaddr.V4.t
- the network argument is gone (superseeded by being integrated into ip above)
- ?gateway is Ipaddr.V4.t (used to be Ipaddr.V4.t option)
--> connect cannot fail anymore :)
@hannesm hannesm merged commit 5410cde into mirage:master Nov 1, 2019
hannesm added a commit to hannesm/opam-repository that referenced this pull request Nov 1, 2019
CHANGES:

* Adapt to mirage-protocols 4.0.0, mirage-net 3.0.0, mirage-time 2.0.0,
  mirage-clock 3.0.0, mirage-stack 2.0.0 interface changes (mirage/mirage-tcpip#420 @hannesm)
* Revise Static_ipv4.connect signature (for more safety):
  val connect : ip:(Ipaddr.V4.Prefix.t * Ipaddr.V4.t) -> ?gateway:Ipaddr.V4.t ->
                ?fragment_cache_size:int -> E.t -> A.t -> t Lwt.t
  it used to be:
  val connect : ?ip:Ipaddr.V4.t -> ?network:Ipaddr.V4.Prefix.t ->
                ?gateway:Ipaddr.V4.t option -> C.t -> E.t -> A.t -> t Lwt.t
  The clock `C.t` is gone (due to mirage-clock 3.0.0), `~ip` and `~network` are
  now required and passed as pair `~ip`. The optional argument `?gateway` is
  of type Ipaddr.V4.t. The new optional labeled argument `~fragment_cache_size`
  specifies the byte size of the IPv4 fragment cache (mirage/mirage-tcpip#420 @hannesm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant