How to apply the OSPF patch to ns2 2.35 on ubuntu 14.04
问题 I have been using ns2 and nam for a long time on my ubuntu. Now I have to apply a patch ( OSPF ) to it. I have been searching for how to apply a patch in linux (as I'm kind of new in it) and all I got was: 1) $ tar xvf ns-allinone-2.35.tar.gz 2) $ cd ns-allinone-2.35/ 3) $ ln -s ns-2.35/ ns-2.34 ... Then the patch will work, except for one line. (commom/packet.h). 4) $ patch -p0 < 10-ospf4ns2.34-base.patch http://sourceforge.net/projects/ospf4ns/ 5) Replace commom/packet.h with the attached