Re: [tcpdump-workers] pcap_send_packet vs. pcap_inject functions

2007-08-20 Thread Guy Harris
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

[tcpdump-workers] pcap_send_packet vs. pcap_inject functions

2007-08-20 Thread Mark Bednarczyk
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