LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   PF_PACKET + SOCK_RAW equivalent on Windoze (https://www.linuxquestions.org/questions/programming-9/pf_packet-sock_raw-equivalent-on-windoze-456622/)

krizzz 06-20-2006 01:02 PM

PF_PACKET + SOCK_RAW equivalent on Windoze
 
Hi,
Maybe not a best place to use forbidden Win.... word, but the question is definitely related to the Linux/Unix world. As given in the subject - is it possible to have a real raw sockets on Win32? I need to access the link level header. I'm able to achieve that with PF_PACKET + SOCK_RAW on linux. I know about winpcap but if you want to recommend it to me I have a few additional questions. Is winpcap installing some driver on the Windoze and therefore enables userspace to manipulate the raw data? Is it only capturing unit or lets the userspace mangle them too?
Thx,
Chris

krizzz 06-28-2006 03:15 PM

I didn't mention that in my previous post but I'm looking for some cross platform solution in fact.
So, I'm partly answering my question here. I found jpcap as a multiplatform tool for capturing the packets, but it solves only 50% of my problem. Anybody knows how can I send the ethernet level RAW packets (frames) from Java? Should I integrate something like libnet as JNI? Or mabye smbdy has already created something like that.


All times are GMT -5. The time now is 10:24 AM.