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

IP: add configured_ips : t -> prefix list #516

Merged
merged 4 commits into from
May 29, 2024
Merged

Conversation

hannesm
Copy link
Member

@hannesm hannesm commented May 9, 2024

No description provided.

@hannesm hannesm changed the title IP: add get_cidr : t -> cidr list IP: add configured_ips : t -> prefix list May 22, 2024
@hannesm
Copy link
Member Author

hannesm commented May 22, 2024

This PR has been updated, get_ips is now deprecated, and in this package not used anymore.

@hannesm
Copy link
Member Author

hannesm commented May 22, 2024

This requires the ipaddr package as proposed in ocaml/opam-repository#25919 -- so we'll need to wait for that being merged before the CI in here will succeed.

Mark get_ips as deprecated, use configured_ips across this package.
Also carry the type equality for 'type prefix' across.
@hannesm
Copy link
Member Author

hannesm commented May 24, 2024

tests were failing, there's a discrepancy in ipv6 with having both prefix and address list.

I changed the address list to contain Ipaddr.Prefix.t now -- this means both the IP address and the netmask is stored in there. The tests pass. IMHO good to merge. We'll need to do an IPv6 deep dive at some point in any case.

@hannesm hannesm merged commit f730ad1 into mirage:main May 29, 2024
3 checks passed
@hannesm hannesm deleted the add-get-cidr branch May 29, 2024 17:00
hannesm added a commit to hannesm/opam-repository that referenced this pull request May 29, 2024
CHANGES:

* adapt to mirage-vnetif 0.6.2 changes (mirage/mirage-tcpip#517 @hannesm)
* Add `type prefix = Ipaddr.Prefix.t` and `IP.configured_ips : t -> prefix`
  to the IP layers (mirage/mirage-tcpip#516 @hannesm)
* Mark `get_ips` as deprecated, use `configured_ips` instead (mirage/mirage-tcpip#516 @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.

None yet

2 participants