[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: mirari updates
This is something I did a while back in order to allow interfaces to open in Mac environments. It was the only way to open raw ethernet sockets in MacOSX. The equivalent action in Linux should open a raw ethernet socket using Libc (Something along this lines http://aschauf.landshut.org/fh/linux/udp_vs_raw/ch01s03.html). At the moment I haven't fixed the Linux code to work. In the case of LinuxÂI had an ifdefÂfunction which implements an empty function for this. It is a bit complicated to handle this case because there is a different approach on how to read packets from pcapÂfd in Macosx and from raw ethernet sockets in Linux. The difference is that in pcapÂyou need to skip the pcapÂheader. This is not the case in Linux. I can fix quickly the code if you could give me some hint on how I could detect in Ocaml the OS type.Â
On 28 February 2013 11:07, Anil Madhavapeddy <anil@xxxxxxxxxx> wrote:
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 |