On Fri, Aug 5, 2011 at 1:02 PM, Dileep Simha <dsi...@gmail.com> wrote:
> Thanks.
> I've looked through the code and figured out how to do it.  The only thing
> left for me to finish is to add a new command line argument to
> tcpreplay-edit in order to be able to save the pcap file.  I am sorry to
> keep pestering you with questions, but I just want to know what files would
> I need to edit in order to add a new argument.  I've tried editting
> tcpreplay_edit_opts.c and tcpreplay_edit_opts.h but I still haven't gotten
> the program to accept the argument when I run it.
> I swear this is my last question.  Thanks for being patient with me :D
> - Dileep Simha


Actually, you never want to edit those files since they're
auto-generated.  Edit tcprewrite_opts.def instead.  All the CLI/config
file parsing is done via GNU Autogen/AutoOpts which is documented
here:

http://autogen.sourceforge.net/autoopts.html

Then you can check to see if that flag is set in tcprewrite.c:post_args()

-- 
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"

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
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