[ns] How to use PATCH command in ns2?

Sidney Doria ssdoria at gmail.com
Mon Jun 11 06:06:20 PDT 2007


Patch is an Unix/Linux/Cygwin tools, not a ns-2 tool. See this short manual:

http://www.cpqlinux.com/patch.html

It'll be useful for make your own patches in future.

Sidney Doria



2007/6/11, 魏于涛 <wei_yutao at hotmail.com>:
>
>
>
> Hello all,
>
> I want to install a patch for ns2. My ns version is ns-allinone-2.29.2.tar.gz, my  patch is ns2292-gcc410.patch.
> My ns is in the directory /home/wyt/ns-allinone-2.29, the patch is in the directory /home/wyt. I want to ask: what command should I use in order to install the patch successfully?
>
> I used the following commands but they did not work:
>
> cd /home/wyt/ns-allinone-2.29
> patch -p0 /home/wyt/ns2292-gcc410.patch
>
> It seemed that the terminal stopped and I did not know what happened.
>
> Can anybody tell me how to use the PATCH command.? I read the mannual and still could not understand it, especially what p0 and p1 means.
>
> Thank you.
>
> Yutao Wei
> CCMIP, Shandong University, Jinan, Shandong Province, P.R. China
> _________________________________________________________________
> 通过 Live.com 查看资讯、娱乐信息和您关心的其他信息!
> http://www.live.com/getstarted.aspx
>
>
>


-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

"Nessa jornada, o conhecimento será o seu escudo..."
(Mestre dos Magos no episódio do grimoire de ouro)



More information about the Ns-users mailing list