Skip to content

More test from mirage-tcpip#8

Merged
hannesm merged 1 commit intomirage:masterfrom
hannesm:more-test
Feb 2, 2019
Merged

More test from mirage-tcpip#8
hannesm merged 1 commit intomirage:masterfrom
hannesm:more-test

Conversation

@hannesm
Copy link
Copy Markdown
Member

@hannesm hannesm commented Feb 1, 2019

move mirage-tcpip/tests/test_arpv4.ml in this repository

behavioural change is that unsolicited ARP frames are dropped in this
implementation in contrast to mirage-tcpip's one.

minor changes:
- provide Arp_handler.ips : t -> Ipaddr.V4.t list (for testing etc.)
- remove unused Clock : Mirage_clock.MCLOCK from arp-mirage functor
- provide Arp_packet.equal

also stumbled upon an exception in mirage-vnetif, pinning a branch thereof which does not raise (not sure what the actual problem is, already spent 3 hours in debugging this)

behavioural change is that unsolicited ARP frames are dropped in this
implementation in contrast to mirage-tcpip's one.

minor changes:
- provide Arp_handler.ips : t -> Ipaddr.V4.t list (for testing etc.)
- remove unused Clock : Mirage_clock.MCLOCK from arp-mirage functor
- provide Arp_packet.equal
@hannesm
Copy link
Copy Markdown
Member Author

hannesm commented Feb 1, 2019

force-pushed, ready to merge if travis agrees

@hannesm
Copy link
Copy Markdown
Member Author

hannesm commented Feb 1, 2019

while trying to remove arp from tcpip, i discovered cyclic opam dependencies in tests :/ good news is that arp only depends on ethernet for testing, which I split off into mirage/ethernet...

@hannesm hannesm merged commit 870896f into mirage:master Feb 2, 2019
@hannesm hannesm deleted the more-test branch February 2, 2019 10:42
avsm added a commit to avsm/opam-repository that referenced this pull request Feb 2, 2019
CHANGES:

* split opam package into two separate ones: a core
  `arp` package and the `arp-mirage` implementation
  for MirageOS that has more dependencies.  This
  eliminates the use of depopts that was done previously
  to build the Mirage layer. (mirage/arp#7 @avsm)

* port build system to Dune (mirage/arp#7 @avsm). The `make coverage`
  and `make bench` targets will do the job of the previous
  topkg targets for those.

* minor fixes to ocamldoc comments to be compatible with
  odoc.

* use mirage-random and mirage-random-test instead of a
  nocrypto dependency in tests and bench (mirage/arp#7 @hannesm)

* import tests from mirage-tcpip (mirage/arp#8 @hannesm)

* depend on the ethernet opam package, no longer provided
  by tcpip >3.7.0 (mirage/arp#9 @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