[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MirageOS-devel] netif that reads from pcap / hoards writes



Hi all,

I've just made public `mirage-net-pcap`, a module that satisfies V1.NETWORK by supplying packets from a prerecorded pcap file (via crunch) and keeping written packets in memory for later examination. You can see it at https://github.com/yomimono/mirage-net-pcap , and there's an example unikernel using it under `arp_tester` in my example-unikernels repository at https://github.com/yomimono/example-unikernels . `mirage-net-pcap` works with both unix and xen backends, although the example code works only with Unix because of its use of oUnit.

Right now there isn't facility for saving writes to persistent storage (i.e., writing to a pcap). I started writing this and then realized it was generally the opposite of what I actually wanted when writing testing code that used `mirage-net-pcap`, but I do plan on adding this in a later release.

I don't have a fork of the mirage frontend tool that nicely sets up a netif in `config.ml` for the user currently, but stacks can be built on top of one in the normal way (i.e., as in `mirage-skeleton/ethifv4`).

Bad, horrible, okay, other?

-Mindy

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.