[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Net.Manager
On 27 March 2013 11:15, Vincent Bernardoff <vb@xxxxxxxxxxxxxx> wrote:
Sorry if I made things more complicated than they really are.Â
Â
A quick and simple solution for this one I think to have a mechanic that will tell us in the ocaml level whether the underline architecture is Linux or Darwin. For Darwin you need to read a frame, remove the first bytes which contain the pcap header and then push it up the stack. For Linux using raw ethernet socket you need to have the same code without the pcap header triming functionality (and add a bit of c code that will open the raw socket fd). Would it be ok to have a prepocessor command together with an option on the compiler? I know that the caml4p already has the Pa_macro extension that exposes some form of prepocessor commands. You only need later to expose a ppopt parameter to the compiler. This technique is already used in the code of the tap_stubs.Â
Â
Charalampos Rotsos PhD student The University of Cambridge Computer Laboratory William Gates Building JJ Thomson Avenue Cambridge CB3 0FD Phone: +44-(0) 1223 767032 Email: cr409@xxxxxxxxxxxx
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |