Hi Ali,
dealing with INET is very similar to OMNET. If you have to extend INET functionalities, all you have to do is to modify .cc files in the subdirectory you are working on, then move into INET main directory and type "make". This will recompile INET modules along with all your changes.
Instead if you need to add new modules (new files) execute "opp_makemake" before make. This will include your new modules inside INET.
Remember that you can use inside INET any Omnet++ module (cTopology, cGate, etc...). If you take a look at INET documentation you can find a lot of useful functions which directly access omnet modules.
Then, in order to run your simulation with INET modules, simply move in your working directory (where you have .ned and .ini files) and execute one of the following:
INET (if you want to use the graphical interface)
INET -r [run to execute] -u Cmdenv -l libcmdenv (if you want to execute from command line)
Regards,
Marco