[Click] Click defines in ns3
Lalith Suresh
suresh.lalith at gmail.com
Wed Jan 23 03:57:04 EST 2013
Hi again,
On Mon, Jan 21, 2013 at 12:30 PM, Sascha Alexander Jopen
<jopen at informatik.uni-bonn.de> wrote:
> Hi again,
>
> Both for userlevel and linuxmodule click drivers, it is possible to set
> defines for the click configurations with commandline options. The
> attached patchset adds this ability to the ns3 click driver, too. It is
> possible to set the defines for each click node within ns3 by
>
> Ipv4ClickRouting::SetDefines (std::map<std::string, std::string> defines);
>
> with defines being a key/value mapping for the defines to be set.
>
> click-ns3-defines.diff is a small patch for click side, adding a new
> function to create a click node instance with defines set.
>
> ns3-nsclick-defines.diff adds support to the ns3 simulator side.
>
> ns2 should still run without modification. It simply doesn't use the new
> function, until someone provides a patch.
>
> If this extension is interesting to you, please review the patch and
> apply it if its ok.
>
The simclick API can be named "simclick_click_create_with_defines" for
clarity. But +1 otherwise.
It would be good if you could send me an ns-3 example script that uses
this API that will go into src/click/model/examples/. I can update the
docs to reflect the new API.
Thanks for the patches!
> Regards,
> Sascha
>
> --
> Dipl.-Inform. Sascha Jopen
>
> University of Bonn Tel.: +49-228-73-54219
> Institute of Computer Science 4 Fax: +49-228-73-4571
> Friedrich-Ebert-Allee 144 E-mail: jopen at cs.uni-bonn.de
> D-53113 Bonn, Germany
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
--
Lalith Suresh
www.lalith.in
More information about the click
mailing list