在 tcl 代码中使用恶意节点时出错

问题描述 投票:0回答:1

The error that is appearing

我正在尝试模拟虫洞攻击并遇到这个问题,我在 ubuntu 18.04 版本上安装了 ns2。

请帮帮我。

ubuntu virtual-machine ns2
1个回答
0
投票

我在 ubuntu 18.04 版本上安装了 ns2

stock ns2默认没有虫洞功能。与其他 ~100 个额外功能/额外协议一样,必须添加虫洞。
ns2 额外的https://drive.google.com/drive/folders/0B7S255p3kFXNZ2lWZDBRSW40Q00?resourcekey=0-eBw6mJFKhSVGultqaD2rDA&usp=share_link

构建示例,Ubuntu 18.04

sudo apt install g++ g++-4.8 autoconf libtool libxmu-dev
tar xvf ns-allinone-2.35_gcc5.tar.gz

https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing&resourcekey=0-EyPhoScBFDb7ul0VFk6FZQ

cd ns-allinone-2.35/
patch -p0 < wormhole_ns235.patch  

https://drive.google.com/file/d/1YErI9TdsZjjgIRDjoRgZMLi0u-zM1WWy/view?usp=sharing

export CC=gcc-4.8 CXX=g++-4.8 && ./install
cd ns-2.35/
cp ns ns-worm
sudo cp ns-worm /usr/local/bin/

模拟:$ ns-worm 2worm14.tcl

num_nodes is set 16
INITIALIZE THE LIST xListHead
(014) - LL::command - added 15 to wormhole peer list
(015) - LL::command - added 14 to wormhole peer list
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 0.2,  distCST_ = 763.1
SORTING LISTS ...DONE!

ns2 信息https://docs.google.com/document/d/1dbrFE8CDMNbE5Kmq4duZl6bUTP7PXdVps9AGvzVi0gM/edit?usp=share_link

© www.soinside.com 2019 - 2024. All rights reserved.