docker run -i -t thehajime/ns-3-dce
cd source/ns-3-dce
./waf --run dce-ping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | |
/* | |
* Copyright (c) 2015 SEBASTIEN DERONNE | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation; | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(pastecs) | |
args <- commandArgs(TRUE) | |
h <- read.table(args[1], header=F,fill=T) | |
if (args[1] == 'ap-udp.txt'||args[1] == 'r0-udp.txt'||args[1] == 'r0-udp.txt'||args[1] == 'r1-udp.txt'||args[1] == 's-udp.txt') { | |
nUDP<-nrow(h) | |
sumDuration<-sum(h[1:nrow(h),4]) | |
udpDurationStat<-stat.desc(h[1:nrow(h),4]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILENAME=$1 | |
DIR=./utils | |
if [ $# -eq 0 ] | |
then | |
echo "./stat-linux.sh <pcap>" | |
exit | |
fi | |
tshark -Tfields -e wlan_radio.data_rate -e frame.len -Y'wlan.fc.type ==0' -r $FILENAME |awk '{print ($1*10**6),($2*8)}' > mgmt.txt | |
tshark -Tfields -e wlan_radio.data_rate -e frame.len -Y'wlan.fc.type==1' -r $FILENAME |awk '{print ($1*10**6),($2*8)}' > ctl.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | |
/* | |
* Copyright (c) 2009 The Boeing Company | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation; | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | |
/* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation; | |
* | |
* 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sha1=$1 | |
if ! [ $# -eq 1 ] | |
then | |
echo "./revert-git.sh <commit HASH number>" | |
exit | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | |
/* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation; | |
* | |
* 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if ! [ $# -eq 1 ]; | |
then | |
echo "./log-normalize.sh <file>" | |
exit | |
fi | |
file=$1 | |
NAME=`echo "$file" | cut -d'.' -f1` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* dce-ping.cc | |
* | |
* Created on: Mar 28, 2560 BE | |
* Author: songrit | |
*/ | |
#include "ns3/network-module.h" | |
#include "ns3/core-module.h" | |
#include "ns3/internet-module.h" |
OlderNewer