NETWORK ATTACKS FRAMEWORK
1.0.0
A NETwork Attacks framework. Making network attacks impact evaluation easier!
|
00001 /* OBTENER LA IP DE UN NODO, Y GUARDARLA EN LA ESTRUCTURA in_addr.*/ 00002 IPv4Address node_address = IPvXAddressResolver().resolve("attacker").get4(); 00003 struct in_addr node_addr; 00004 node_addr.s_addr = node_address.getInt(); 00005 00006 00007 /* DOS POSIBLES FORMAS DE SACAR EL NOMBRE DEL NODO. */ 00008 std::cout << getParentModule()->getName() << "\n"; 00009 std::cout << getParentModule()->getFullName() << "\n"; 00010 00011 00012 /* FUNCIONES PARA EL FICHERO NED */ 00013 http://www.omnetpp.org/doc/omnetpp/manual/usman.html#sec534 00014 00015 00016 /* CLASE CPAR: PAR�METROS */ 00017 http://www.omnetpp.org/doc/omnetpp/api/classcPar.html 00018 00019 00020 // Mostrar parametros de la simulacion. 00021 int numFlows = simulation.getSystemModule()->par("numFlows"); 00022 EV << "numFlows = " << numFlows << "\n";