On Tue, Jun 21, 2011 at 8:48 AM, Dileep Simha <dsi...@gmail.com> wrote:
> alright... sorry to bother you with more questions.  Hopefully this one
> won't be a problem.
> I have an assignment in which I have to change the randomizing of the ip
> address in the pcap file
> For instance, if packet x goes from ip_a to ip_b, and the ip is randomized
> to ip_c to ip_d, then all
> instances of ip_a to ip_b should be changed to ip_c to ip_d.  I'm not asking
> how to implement this,
> I just want to know where exactly in the source code are the ip addresses
> being randomized (would
> be nice to know the file, and line number).  I just don't want to go messing
> with random code and end
> up breaking something.  I guess I just want to know where I should edit in
> the code to add this functionality.
> Thanks a lot,
> Dileep

That should already be happening, but the code is in
src/tcpedit/edit_packet.c:randomize_ipv4()

-- 
Aaron Turner
http://synfin.net/         Twitter: @synfinatic
http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
    -- Benjamin Franklin
"carpe diem quam minimum credula postero"

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Tcpreplay-users mailing list
Tcpreplay-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support

Reply via email to