Are you sending the packet out using Winpcap or are you using a tcp/ip
socket? Sockets will add TCP and IP headers to any info you send via
them. Have you tried the PacketSendPacket()  function?
Can you capture the packet you send out using your sniffer? It should
appear on the wire just like the first packet you capture.


On Fri, 28 Feb 2003 16:34:36 +0300
Sergej Kononov <[EMAIL PROTECTED]> wrote:

> AY> You may need to change the source and destination IP addresses.
> AY> If you swap them over then the checksum will be the same, but if you
> AY> change them you'll have to recalculate the checksum.
> AY> Assuming the source and destination TCP ports are the same you can leave
> AY> them as they are (or swap them over). 
> AY> If you just want to retransmit the packet then you don't need to do
> AY> anything.
> 
> For a test scope I have written a simple TCP server which listens to the port,
> accepts bytes(symbols) and sends them back.  I have intercepted (with help of 
> WinPcap) a packet,
> sent to the server  and now I want to sent it once more, but the server does not 
> answer me
> and sends an empty packet composed of 40 bytes (IP + TCP headers).
> 
> 




==================================================================
 This is the WinPcap users list. It is archived at
 http://www.mail-archive.com/[EMAIL PROTECTED]/

 To unsubscribe use 
 mailto: [EMAIL PROTECTED]
==================================================================

Reply via email to