I think that the libnet/libnetNT interface should be the same under the variuos supported OSes. I think that the sendto you refer to is used by the unix flavors, like linux, that provide raw sockets for packet injection. However, try to ask to the libnet developers, they will surely be able to provide better answers than us.
Loris ----- Original Message ----- From: "Fakhar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Loris Degioanni" <[EMAIL PROTECTED]> Sent: Monday, May 20, 2002 1:03 PM Subject: [WinPcap-users] About libnet 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
