- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我在 ubuntu 上使用 ns2
和 nam
已经很长时间了。现在我必须对其应用补丁 (OSPF
)。我一直在寻找如何在 Linux 中应用补丁(因为我是新手),我得到的只是:
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 "packet.h" : Edited by hand.
6) export CC=gcc44 CXX=g++44 && ./install
我解压了 tar 文件,将 .patch
文件复制到 ns-allinone-2.35
文件夹中,名为 10-ospf4ns2.34-base.patch
,转到终端中的目录,使用 ln -s ns-2.35/ns-2.34
,然后使用第 4
行进行修补。之后我收到以下消息:
The next patch would create the file ns-2.34/classifier/classifier-mtopology.cc,
which already exists! Assume -R? [n] y
patching file ns-2.34/classifier/classifier-mtopology.cc
The next patch would create the file ns-2.34/classifier/classifier-mtopology.h,
which already exists! Assume -R? [n] y
patching file ns-2.34/classifier/classifier-mtopology.h
can't find file to patch at input line 92
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- ns-2.34.old/common/agent.cc 2009-06-14 18:35:45.000000000 +0100
|+++ ns-2.34/common/agent.cc 2010-02-26 23:34:33.161063590 +0000
--------------------------
File to patch:
之后我不知道该怎么办。我应该修补什么文件? ns-2.34
中没有 classifier-mtopology.h
。之后,我应该将哪个 packet.h
替换为指定的新 packet.h
?因为有几个common
文件夹。任何帮助将不胜感激,因为我是 Linux 新手。
最佳答案
看起来您之前已经应用了补丁(至少部分地),并且您不在正确的目录中。
重新开始,您也可以按照以下说明避免符号链接(symbolic link):
将 ns-allinone-2.35.tar.gz 提取到新目录中。
cd ns-allinone-2.35/ns-2.35
应用补丁:
补丁-p1<10-ospf4ns2.34-base.patch
关于linux - 如何在 ubuntu 14.04 上将 OSPF 补丁应用于 ns2 2.35,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27996634/
我正在开发一个项目,需要手动生成 OSPF 数据包。我目前在正确获取 OSPF 校验和时遇到问题。我读到我必须将身份验证数据排除在计算之外,即使我这样做,我也无法让它工作。我知道用于生成校验和的函数是
我正尝试按如下方式收听 OSPFv2 Hello 消息: ens192, err := net.InterfaceByName("ens192") if err != nil {
问题一:我在 Omnet++ 中实现了 ospf 协议(protocol)。根据拓扑,r1可以通过两种不同的方式到达r3。我已经将upper path metric设置为1,将lower path设置
我已经安装了 OSPF patch对于 ns2 并且它安装正确。现在,当我尝试使用命令 ns ospf0.tcl 运行同一补丁的 tcl 示例时,出现此错误: (TCL) Creating simul
为什么BGP还没有完全取代OSPF和IsIs?其他两个协议(protocol)处理 BGP 尚未实现的内容是什么? 最佳答案 在什么情况下 BGP 取代 OSPF 或 ISIS 是可行的? BGP 是
我一直在尝试计算 OSPF 数据包的 LSA 校验和,但没有成功。 我阅读了 ospf 的 RFC 并在那里说您需要使用 Fletcher 算法。我试过了,但它仍然没有给出正确的答案。我的代码: Vo
我正在尝试在 Mac 或 Linux 中进行 OSPF 协议(protocol)模拟。所以,基本上我想运行许多二进制 OSPF 二进制文件,它们应该能够相互通信,并且应该能够使用伪接口(interfa
为什么 OSPF LSA 序列号在 0x80000001 到 0x7FFFFFFF 范围内。 我想这是出于某些历史原因,但不能用谷歌搜索。 最佳答案 LSA 序列号是一个有符号的 32 位整数。 所以
我在 ubuntu 上使用 ns2 和 nam 已经很长时间了。现在我必须对其应用补丁 (OSPF)。我一直在寻找如何在 Linux 中应用补丁(因为我是新手),我得到的只是: 1) $ tar xv
我是一名优秀的程序员,十分优秀!