Is it possible to dynamically change the length of the packets
transmitted to
the network? I notice that the TX packet length is governed by the
buffer length
parameter in the function: PacketInitPacket. If one uses this function
to set
the TX packet length, what happens to the packets that have already been
sent to the DRIVER via the PacketSendPacket function? The only way that
I could see from the online documents to change the TX packet length is
described below:
PacketInitPacket(lpTxPacket, txPacketBuff, 60); /* Set the length to 60
Bytes */
PacketSendPacket(lpAdapter,lpTxPacket,TRUE); /* Send the packet */
PacketInitPacket(lpTxPacket, txPacketBuff, 120);
/* Set the length to 120 Bytes - Are we guaranteed that the packet
has been transmitted yet?
Are we guaranteed that only 60 bytes of the first packet gets
transmitted? */
I would like to be able to dynamically change the packet length without
affecting
the packets already in the driver queue, and without waiting (no "Sleep"
calls, etc.) -
is this possible with the winpcap libraries and API?
Thank you for your help.
Errett Hogrefe