[Click] how to develop new elements in ns?
Eddie Kohler
ekohler at gmail.com
Thu Feb 16 20:01:52 EST 2012
For what it's worth I can confirm that "ELEMENT_REQUIRES(userlevel|ns)"
works. I don't know what you did wrong.
OH WAIT I KNOW WHAT YOU DID WRONG.
Your compilation process:
./configure -enable-local&& make elemlist&& make install
turns OFF nsclick, because you did not supply the --enable-nsclick
option. So you never rebuilt nsclick.
You only need to run ./configure ONCE (or whenever you later want to
change the configuration options). Every later time just say "make
elemlist && make install"
Eddie
On 12/13/11 7:35 AM, liang jiao wrote:
> Hi, all,
> When I use "ELEMENT_REQUIRES(ns), new elements can't be used
> both on ns and userlevel. When I use "ELEMENT_REQUIRES(userlevel|ns), new
> elements can be used on userlevel but not on ns.
> Installation procedures is as follows:
> cd CLICK-2.0.1 ./configure -prefix=/usr/local --enable-userlevel
> --enable-nsclick --disable-linuxmodule&& make install
> cd NS-2.34 patch -p0 /CLICK/ns-2.34-path
> ./install
> The format about new elements as follows:
> xx.hh #ifndef xx
> #define xx
> CLICK_DECLS
> CLICK_ENDDECLS
> #endif
> xx.cc CLICK_DECLS
> CLICK_ENDDECLS
> EXPORT_ELEMENT(XX)
> ELEMENT_REQUIRES(userlevel|ns)
> Compliation process as follows:
> ./configure -enable-local&& make elemlist&& make install
> I need to kown things that I did wrong. Can you help me?
> best wishes,
> messi,
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list