Replaying a TCP connection

neha agrawal nehavrce at yahoo.co.in
Tue Jan 4 21:33:04 PST 2005


hello!

        i want to implement smtp protocol on the same
machine.i have a libpcap trace file..in which i have
captured mail traffic..(single session).and i want to
develop a program which can read this trace file..and
communicate with the smtp server...
    first packet is Sync packet in trace file..so i
want to send it to smtp server...and then i want my
progrem to handle the reply sent by server..(say it
sent Syn-Ack) anf then my prgm should reply
accordingly..
       for doing this i am using PF_PACKET , SOCK_RAW
and using sendto function...i am sending the
packet..im able to see it through tcpdump...but
theserver is not replying...why??i am wrking with
linux Redhat 9 kernel 2.4.20-8
     
       (...if u r familiar with flowreplay tool..i
want to do something similar ...but mine is single
session..so less complicated...)

    attching source code...

 do let me know..if i am on correct track...
                                          thnks
                                           Neha


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tcp1.c
Type: application/octet-stream
Size: 2636 bytes
Desc: tcp1.c
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20050104/a9d0e122/tcp1.obj


More information about the freebsd-net mailing list