注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 利用IPSec实现网络安全之..
 帮助

oversim中的malicious


2008-04-26 20:32:47
 标签:安全 仿真 malicious   [推送到技术圈]

版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://176392.blog.51cto.com/166392/73689
这几天看了一下oversim中关于恶意节点行为的代码,实在是少之又少,都是围绕着ismalicious()和setmalicious()的最简单设置,恶意节点对于某些消息比如路由和查找就是直接抛弃不管,看来要实现任何攻击的仿真都要从最基础的代码编起,不过也好,有利于对overlay的路由机制有深入的了解

本文出自 “黛西的学习空间” 博客,请务必保留此出处http://176392.blog.51cto.com/166392/73689





    文章评论
 
2008-06-06 18:21:06
我在装OVERSIM遇到一个问题

2008-06-06 18:21:10
我在装OVERSIM遇到一个问题

2008-06-11 16:33:26
在omnetpp和INET都正确安装后,开始安装oversim ,./makemake通过,没有错误,在make的时候,出现以下问题
In file included from BaseApp.cc:28:
BaseApp.h:313: syntax error before `{\' token
BaseApp.h: In member function `NodeVector* BaseApp::callLocalLookup(const
OverlayKey&, int, bool)\':
BaseApp.h:221: `overlay\' undeclared (first use this function)
BaseApp.h:221: (Each undeclared identifier is reported only once for each
function it appears in.)
BaseApp.h: At global scope:
BaseApp.h:321: two or more data types in declaration of `sendToUDP\'
BaseApp.h:321: virtual outside class declaration
BaseApp.h:321: invalid return type for function `BaseApp sendToUDP(cMessage*,
int, IPvXAddress, int)\'
BaseApp.h:321: because the following virtual functions are abstract:
BaseRpc.h:549: virtual CompType BaseRpc::getThisCompType()
BaseRpc.h:562: virtual void
BaseRpc::sendRpcMessageWithTransport(TransportType, CompType, const
TransportAddress&, const OverlayKey&, BaseRpcMessage*)
BaseApp.h:321: syntax error before `{\' token
BaseApp.h:323: `ta\' was not declared in this scope
BaseApp.h:323: `msg\' was not declared in this scope
BaseApp.h:323: ISO C++ forbids declaration of `sendMessageToUDP\' with no type
BaseApp.h:323: initializer list being treated as compound expression
BaseApp.h:324: syntax error before `}\' token
BaseApp.h:333: virtual outside class declaration
BaseApp.h:354: `BaseOverlay*overlay\' used prior to declaration
BaseApp.h:366: syntax error before `public\'
BaseApp.h:373: destructors must be member functions
BaseApp.h:373: virtual outside class declaration
BaseApp.h:377: syntax error before `protected\'
BaseApp.h:385: virtual outside class declaration
BaseApp.h:388: syntax error before `}\' token
BaseApp.cc:39: definition of implicitly-declared `BaseApp::BaseApp()\'
BaseApp.cc:46: definition of implicitly-declared `virtual BaseApp::~BaseApp()\'
BaseApp.cc: In member function `virtual void BaseApp::initialize(int)\':
BaseApp.cc:92: `thisCompType\' undeclared (first use this function)
BaseApp.cc: At global scope:
BaseApp.cc:165: no `CompType BaseApp::getThisCompType()\' member function
declared in class `BaseApp\'
BaseApp.cc:415: no `void BaseApp::handleTraceMessage(cMessage*)\' member
function declared in class `BaseApp\'
BaseApp.cc:422: no `void BaseApp::sendMessageToOverlay(cMessage*)\' member
function declared in class `BaseApp\'
BaseApp.cc:454: no `void BaseApp::sendRpcMessageWithTransport(TransportType,
CompType, const TransportAddress&, const OverlayKey&, BaseRpcMessage*)\'
member function declared in class `BaseApp\'
BaseApp.cc:520: no `bool BaseApp::internalHandleRpc(BaseCallMessage*)\' member
function declared in class `BaseApp\'
BaseApp.cc:526: no `bool
BaseApp::internalHandleRpcResponse(BaseResponseMessage*, int, double)\'
member function declared in class `BaseApp\'
make[1]: *** [BaseApp.o] Error 1
make[1]: Leaving directory `/home/wanghao/oversim/OverSim-20080416/Common\'
make: *** [Common] Error 2

2008-06-20 11:09:01
有可能是目录的问题,omnet..,INET..,oversim-2007...应该存在于一个目录下

 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: