<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.5726" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>At the moment (i.e. current version of WinPcap) it's not
possible to do that, the driver fails the transmit operation if a packet has a
0-byte length.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>It can be done pretty easily, however.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Have a nice day</FONT></DIV>
<DIV><FONT size=2>GV</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=adagiograzioso@gmail.com
href="mailto:adagiograzioso@gmail.com">Adagio Grazioso</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=winpcap-users@winpcap.org
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, October 29, 2009 6:52
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Winpcap-users] correct
usage of pcap_sendqueue_transmit?</DIV>
<DIV><BR></DIV>
<DIV>GV,</DIV>
<DIV></DIV>
<DIV>To work around this, can we have a 'feature' which allows adding pkts to
a send queue with a caplen/len of 0? If this is supported, we can add a pkt
with a len of 0 to the end of the first sendqueue with the appropriate
timestamp.</DIV>
<DIV></DIV>
<DIV>Adagio<BR></DIV>
<DIV></DIV>On Fri, Oct 30, 2009 at 12:30 AM, <<A
href="mailto:winpcap-users-request@winpcap.org">winpcap-users-request@winpcap.org</A>>
wrote:<BR><BR>> Date: Wed, 28 Oct 2009 16:06:33 -0700<BR>> From:
"Gianluca Varenni" <<A
href="mailto:gianluca.varenni@cacetech.com">gianluca.varenni@cacetech.com</A>><BR>>
Subject: Re: [Winpcap-users] correct usage of pcap_sendqueue_transmit?<BR>>
To: <<A
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A>><BR>>
Message-ID: <51CCC9A0A65248C88F022BB28D90AFA3@NELSON3><BR>>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";<BR>>
reply-type=original<BR>><BR>> The usage is correct,
indeed. However, pcap_sendqueue_transmit respects the<BR>> timestamps
within the queue, but not between two different calls to the same<BR>>
function.<BR>><BR>> Suppose that the last packet in the queue has a
timestamp of 10s, and the<BR>> first packet of the next queue has a
timestamp of 11s. When<BR>> pcap_sendqueue_transmit transmits the second
queue, it will not respect the<BR>> timestamp of the first packet(11s), it
will send it immediately.<BR>><BR>> Have a nice day<BR>>
GV<BR>><BR>> ----- Original Message -----<BR>> From: "Noam Cohen"
<<A
href="mailto:Noam.Cohen@harmonicinc.com">Noam.Cohen@harmonicinc.com</A>><BR>>
To: <<A
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A>><BR>>
Sent: Tuesday, October 27, 2009 4:09 AM<BR>> Subject: [Winpcap-users]
correct usage of pcap_sendqueue_transmit?<BR>><BR>><BR>>>
GV,<BR>>> I have a PCAP file of 400MB which has to be played in endless
loop. I read<BR>>> a packet and send it using the Transmit() described
in the pseudo code.<BR>>> In the wireshark tutorial, "sendcap", the
whole file is added into the<BR>>> transmit queue and then transmitted.
This does not work with large files<BR>>> (or when a loop play is
needed).<BR>>> In the Transmit(), I fill the queue with packets and when
near fullness,<BR>>> call pcap_sendqueue_transmit(). I would expect it
to *clear* the queue but<BR>>> it does not happen. The only way I see to
reuse the queue is to destroy<BR>>> and then allocate it again. Is this
the way it is meant to be ?!<BR>>><BR>>> Are the packets which are
added to the queue actually copied? I assume so<BR>>> since there is no
other mechanism to keep the memory valid.<BR>>><BR>>>
Thanks<BR>>> Noam<BR>>>
_______________________________________________<BR>>> Winpcap-users
mailing list<BR>>> <A
href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</A><BR>>>
<A
href="https://www.winpcap.org/mailman/listinfo/winpcap-users">https://www.winpcap.org/mailman/listinfo/winpcap-users</A><BR>><BR>><BR>><BR>>
------------------------------<BR>><BR>>
_______________________________________________<BR>> Winpcap-users mailing
list<BR>> <A
href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</A><BR>>
<A
href="https://www.winpcap.org/mailman/listinfo/winpcap-users">https://www.winpcap.org/mailman/listinfo/winpcap-users</A><BR>><BR>><BR>>
End of Winpcap-users Digest, Vol 55, Issue 21<BR>>
*********************************************<BR>><BR><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>Winpcap-users
mailing
list<BR>Winpcap-users@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-users<BR></BLOCKQUOTE></BODY></HTML>