Mark Bednarczyk wrote:
Can someone explain to me the difference between these two calls,
pcap_sendpacket vs. pcap_inject, introducted in 0.8.3?
The difference is that pcap_sendpacket() returns 0 on success and
pcap_inject() returns the number of bytes written on success.
From what I could
Can someone explain to me the difference between these two calls,
pcap_sendpacket vs. pcap_inject, introducted in 0.8.3?
/*
* API compatible with WinPcap's "send a packet" routine - returns -1
* on error, 0 otherwise.
*
* XXX - what if we get a short write?
*/
int
pcap_sendpacket(pcap_t