On Tue, Aug 21, 2001 at 01:20:17PM -0400, Nicolae Iuoras wrote:
> I'm using winpcap v2.2 and trying to get pcap_sendpacket() to work.
Questions about WinPcap extensions, such as "pcap_sendpacket()", should
probably be sent to [EMAIL PROTECTED], as the Tcpdump
Group don't develop WinPcap's extensions, we just develop the libpcap
that WinPcap ports to Windows.
> Does anyone know what the return values represent (success, failure, no.
> of bytes sent, etc.?)
At least according to the source code, it returns either -1 on failure
and 0 on success.
> Also, can I use the same (pcap_t *) pointer to
> both capture and send packets (i.e., use pcap_loop() and then
> pcap_sendpacket() on the same pcap_t * pointer)? The Winpcap FAQ is
> vague about this.
I don't know whether it can, but I think it'd be an error not to allow
it. The underlying file descriptor^H^H^H^H^H^H^H^H^H^Hhandle is opened
with GENERIC_WRITE | GENERIC_READ, and "pcap_sendpacket()" just does a
"WriteFile()", so it's not as if the underlying handle doesn't allow
sending packets; whether the driver allows it is another matter, and I'm
not about to dive into the driver to check, but I'd be somewhat
surprised if it didn't.
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe