# 16, @ rkmjordan : Welcome to LQ.
It's usually c++ code, that is added to be compiled into the binary ns.
( Makefile section OBJ_CC ).
However, there is a small section with c code.
Look for that, or simply write a new section entry. NS-2.34 line 362-371.
Make some copies of the Makefile ( Makefile1 Makefile2 Makefile3 ...)
And experiment with those. And then try ...
make -f Makefile1 , to test if the object is compiled into ns.
(I have no idea, if it works, as all tested / added code always is c++.)
..
|