LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to find the netem codes (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-the-netem-codes-4175454393/)

mun10 03-17-2013 02:54 AM

how to find the netem codes
 
hii everyone
i am trying to find the netem source code but i got programs without the main function.i have downloaded the 2.6 kernel in inside the sch directory i got code for netem but even it doesnt have the main function.and while compiling the code i am getting dereferncing pointer incomplete type error.how to solve this error and how to get the iproute2 package.i got a link but there is no download link available.
can anyone help?

pan64 03-17-2013 03:13 AM

instead of duplicating threads try to explain your problem much better and also show us what have you tried and what was the result/error message.
http://www.linuxquestions.org/questi...on-4175454392/

mun10 03-17-2013 09:34 AM

netem
 
i got 1 source code for netem.c in http://libnl2.sourcearchive.com/docu...8c_source.html but it doesnot contain a main function.is it possible to have a c program without the main function.i am using fedora 14 and i have included all the user header files mentioned in the above code inside the /usr/include/netlink directory.but while executing the programming i got deferencing pointer incomplete type in all the structures the program contains.
am i able to clear my question?
i even tried to search inside different directories of linux.and got a code for netem in linux/net/schd and got a program sch_netem.c but it also without the main function.is there is any way to execute such codes?

mun10 03-17-2013 11:45 AM

codes baked in os
 
or can any1 help me with how to find the main function of a code if it is baked in the operating system?


All times are GMT -5. The time now is 03:33 PM.