kohler / click

The Click modular router: fast modular packet processing and analysis
Other
734 stars 324 forks source link

error: SIOCGSTAMP #460

Closed JackokieZhao closed 3 years ago

JackokieZhao commented 3 years ago

It occurs the error "SIOCGSTAMP" when I make the click project for NS3.

Here is the make command: $ git clone https://github.com/kohler/click $ cd click/ $ ./configure --disable-linuxmodule --enable-nsclick --enable-wifi $ make

The following is the output log. ar:u' modifier ignored since D' is the default (seeU') RANLIB libclick.a CXX ../elements/userlevel/fromdevice.cc ../elements/userlevel/fromdevice.cc: In member function ‘virtual void FromDevice::selected(int, int)’: ../elements/userlevel/fromdevice.cc:546:49: error: ‘SIOCGSTAMP’ was not declared in this scope p->timestamp_anno().set_timeval_ioctl(_fd, SIOCGSTAMP); ^~~~~~ ../elements/userlevel/fromdevice.cc:546:49: note: suggested alternative: ‘SIOCGRARP’ p->timestamp_anno().set_timeval_ioctl(_fd, SIOCGSTAMP); ^~~~~~ SIOCGRARP make[1]: *** [elements.mk:404: fromdevice.o] Error 1 make[1]: Leaving directory '/home/jackokie/Work/NS3/click/userlevel' `

woma1040 commented 3 years ago

If your Kernel version is >= 5.2 , there's an open pull request that solved the problem for me : https://github.com/kohler/click/pull/451/commits/ef8c838a0f8abdd791182ec9c480528f0afb7fbe

tbarbette commented 3 years ago

Merged