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

Re: mirari updates

On 27 Feb 2013, at 22:15, Vincent B. <vb@xxxxxxxxx> wrote:
> No, I have a problem with the UNIX backend, the function pcap_opendev is not 
> implemented in Linux. I have tried to implement that this afternoon, only to 
> find out in the end that this was not straightforward (pcap_open_live returns 
> a pcap_t * and not a fd). I did not have the time to inquire further. I spent 
> hours trying to make the buildsystem (which is based on a cmd script + 
> ocamlbuild/custom myocamlbuild -- maybe we should port that on obuild ?) link 
> the resulting libs with pcap (-lpcap). I did not manage to do that either, 
> wasn’t proficient enough in ocamlbuild scripting.

Truth be told, I have no idea what pcap is doing in there.  Haris, is it to 
avoid requiring a tuntap bridge and to work with an existing interface?

I'd be inclined to not expose it all to Linux for the moment, since it already 
has the bridging support for tuntap. MacOS X doesn't have kernel-level 
bridging, so I can see why pcap is useful there.

Btw, the cmd script was just a quick shim.  Replacing it with obuild would be 
great, if it can handle all the C bindings.  It may be better to build the C 
components with a conventional Makefile, and the OCaml libraries with obuild.



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