how to develop new elements in ns?

liang jiao <[email protected]>
Newsgroups gmane.network.routing.click
Message-ID <CAL6hYyYVjccg5OcECZTNQPDTQCkmQ5dWcgMrJ+7phukpbuu_yA@mail.gmail.com>
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,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.