资源简介
Distributed Internet Traffic Generator。分布式流量生成软件,开源。
可结合Mininet使用
If you are using D-ITG for scientific papers, academic lectures, project reports, or technical documents, please help us increasing D-ITG impact by adding a reference to:
A. Botta, A. Dainotti, A. Pescapè, "A tool for the generation of realistic network workload for emerging networking scenarios", Computer Networks (Elsevier), 2012, Volume 56, Issue 15, pp 3531-3547. (Article) (BibTex)
代码片段和文件信息
/*
* Component of the D-ITG 2.8.1 (r1023) platform (http://traffic.comics.unina.it/software/ITG)
*
* Copyright : (C) 2004-2013 by Alessio Botta Walter de Donato Alberto Dainotti
* Stefano Avallone Antonio Pescape‘ (PI)
* COMICS (COMputer for Interaction and CommunicationS) Group
* Department of Electrical Engineering and Information Technologies
* University of Napoli “Federico II“.
* email : a.botta@unina.it walter.dedonato@unina.it alberto@unina.it
* stavallo@unina.it pescape@unina.it
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation either version 3 of the License or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not see .
*
* For commercial use please refer to D-ITG Professional.
*/
#ifdef CRYPTO
#include
#include
void generate_key()
{
RSA *RSAreceiver;
FILE *keyReceiver1;
FILE *keyReceiver2;
keyReceiver1 = fopen(“KeyReceiverPubblica“ “w“);
keyReceiver2 = fopen(“KeyReceiverPrivata“ “w“);
RSAreceiver = RSA_generate_key(1024 17 0 0);
PEM_write_RSAPublicKey(keyReceiver1 RSAreceiver);
PEM_write_RSAPrivateKey(keyReceiver2 RSAreceiver 0 0 0 0 0);
fclose(keyReceiver1);
fclose(keyReceiver2);
RSA *RSAsender;
FILE *KeySender1;
FILE *KeySender2;
KeySender1 = fopen(“KeySenderPubblica“ “w“);
KeySender2 = fopen(“KeySenderPrivata“ “w“);
RSAsender = RSA_generate_key(1024 17 0 0);
PEM_write_RSAPublicKey(KeySender1 RSAsender);
PEM_write_RSAPrivateKey(KeySender2 RSAsender 0 0 0 0 0);
fclose(KeySender1);
fclose(KeySender2);
}
int autenticazioneSender(int signaling)
{
char *next;
int size;
BYTE type = 10;
unsigned char Messaggio[256];
unsigned char MessaggioCodificato[256];
unsigned char MessaggioCodificato2[256];
unsigned char MessaggioOriginale[] = “fantozzi alla riscossa“;
unsigned char MessaggioOriginale2[256];
unsigned char buffer[3000];
generate_key();
int plen = sizeof(MessaggioOriginale) - 1;
RSA *RSAreceiver;
FILE *keyReceiver;
keyReceiver = fopen(“KeyReceiverPubblica“ “r“);
PEM_read_RSAPublicKey(keyReceiver &RSAreceiver 0 0);
fclose(keyReceiver);
size = RSA_public_encrypt(plen MessaggioOriginale MessaggioCodificato RSAreceiver RSA_PKCS1_PADDING);
cout << “Esito della RSA_pubblic_encrypt :“ << size <<
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-07-02 14:35 D-ITG-2.8.1-r1023\
文件 1411 2013-07-02 14:35 D-ITG-2.8.1-r1023\README
文件 10970 2013-07-02 14:35 D-ITG-2.8.1-r1023\CHANGELOG
文件 5 2013-07-02 14:35 D-ITG-2.8.1-r1023\REVISION
目录 0 2013-07-02 14:35 D-ITG-2.8.1-r1023\bin\
目录 0 2013-07-02 14:35 D-ITG-2.8.1-r1023\tools\
文件 23281 2013-07-02 14:35 D-ITG-2.8.1-r1023\tools\mcalc
文件 2650 2013-07-02 14:35 D-ITG-2.8.1-r1023\tools\ez
文件 420 2013-07-02 14:35 D-ITG-2.8.1-r1023\tools\ITGRecv.sh
文件 15919 2013-07-02 14:35 D-ITG-2.8.1-r1023\tools\allcalc
文件 6 2013-07-02 14:35 D-ITG-2.8.1-r1023\VERSION
文件 35147 2013-07-02 14:35 D-ITG-2.8.1-r1023\LICENSE
文件 5438 2013-07-02 14:35 D-ITG-2.8.1-r1023\INSTALL
目录 0 2013-07-02 14:35 D-ITG-2.8.1-r1023\src\
目录 0 2013-07-02 14:35 D-ITG-2.8.1-r1023\src\ITGManager\
文件 534 2013-07-02 14:35 D-ITG-2.8.1-r1023\src\ITGManager\Makefile
文件 1702 2013-07-02 14:35 D-ITG-2.8.1-r1023\src\ITGManager\ITGManager.h
文件 2984 2013-07-02 14:35 D-ITG-2.8.1-r1023\src\ITGManager\ITGManager.cpp
文件 5128 2013-07-02 14:35 D-ITG-2.8.1-r1023\src\linux-mingw.mk
文件 347 2013-07-02 14:35 D-ITG-2.8.1-r1023\src\common.mk
文件 702 2013-07-02 14:35 D-ITG-2.8.1-r1023\src\Makefile
目录 0 2013-07-02 14:35 D-ITG-2.8.1-r1023\src\ITGPlot\
文件 3207 2013-07-02 14:35 D-ITG-2.8.1-r1023\src\ITGPlot\ITGplot
文件 4825 2013-07-02 14:35 D-ITG-2.8.1-r1023\src\win-mingw.mk
文件 6371 2013-07-02 14:35 D-ITG-2.8.1-r1023\src\unix.mk
文件 6216 2013-07-02 14:35 D-ITG-2.8.1-r1023\src\D-ITG.dev
目录 0 2013-07-02 14:35 D-ITG-2.8.1-r1023\src\common\
文件 1693 2013-07-02 14:35 D-ITG-2.8.1-r1023\src\common\serial.h
文件 2888 2013-07-02 14:35 D-ITG-2.8.1-r1023\src\common\thread.h
文件 1986 2013-07-02 14:35 D-ITG-2.8.1-r1023\src\common\pipes.h
文件 5860 2013-07-02 14:35 D-ITG-2.8.1-r1023\src\common\ITG.cpp
............此处省略96个文件信息
- 上一篇:Windows shell扩展程序
- 下一篇:stm32 SDIO操作库
评论
共有 条评论