Dear Loris,
 
As you asked me to use LibnetNt for writing packets over network.
 
Actually I want some library for both linux and win32 platforms. A library which should use same method/technology to send and capture packets over network.  To capture, Winpcap and libpcap uses the same method to capture packets i.e. capturing directly form data link layer.
 
Now in the case of LibnetNt and libnet it is different (at least, I got such). LibnetNt uses Packet.dll to write packet over internet and Packet.dll uses NPF driver.
But libnet uses "sendto" function to write the packets over network, and if I am not wrong, sendto function uses the tcp/ip stack to send data. While using this function we are not sending data using data link layer as in the case of packet.dll.
 
Please tell me some idea to solve this problem.
 
Thanks
 
Take Care
 
Fakhar

Reply via email to