Skip to content

Instantly share code, notes, and snippets.

# https://sreeninet.wordpress.com/2015/03/13/onos-overview-and-hands-on/
cd ~/
mkdir Downloads Applications
# Install karaf, Maven
cd ~/Downloads
wget http://archive.apache.org/dist/karaf/3.0.3/apache-karaf-3.0.3.tar.gz
wget http://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
@RichardWithnell
RichardWithnell / RPi
Last active August 2, 2017 20:56
MPTCP Raspberry Pi
git clone http://github.com/richardwithnell/mptcp-rpi
make mrproper
# 64 Bit
# export CCPREFIX=/home/richard/Software/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-
# 32 Bit
export CCPREFIX=/home/richard/Software/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-
make ARCH=arm CROSS_COMPILE=$CCPREFIX bcmrpi_defconfig
make ARCH=arm CROSS_COMPILE=$CCPREFIX menuconfig
make -j3 ARCH=arm CROSS_COMPILE=$CCPREFIX
@RichardWithnell
RichardWithnell / string updates
Last active August 29, 2015 14:16
NS3 DCE diff
diff -r 0baf57dd8f75 model/dce-string.cc
--- a/model/dce-string.cc Sun Feb 01 21:26:05 2015 +0900
+++ b/model/dce-string.cc Mon Mar 02 02:38:51 2015 +0000
@@ -19,6 +19,22 @@
return str;
}
+unsigned long long dce___strtoull_internal(const char * __nptr,
+ char * * __endptr,
+ int __base,
@RichardWithnell
RichardWithnell / NS3 DCE iptables
Last active November 3, 2015 00:38
NS3 DCE iptables
git clone http://github.com/richardwithnell/iptables
cd iptables/
./configure LIBS="-pie -rdynamic" CFLAGS="-fPIC -U_FORTIFY_SOURCE" --with-xtlibdir=/lib/xtables --disable-shared
make
readelf -h iptables/xtables-multi | grep Type:
@RichardWithnell
RichardWithnell / Android Studio + GStreamer
Last active August 29, 2015 14:15
Android Gstreamer
Android Studio
/*TODO: Update this document to use GStreamer 1.0, will need to update code as well */
1) Download android-ndk-r9d: - does not work with the more recent r10d.
wget http://dl.google.com/android/ndk/android-ndk-r9d-linux-x86.tar.bz2
tar xf android-ndk-r9d-linux-x86.tar.bz2
2) Download Gstreamer for Android:
wget http://cdn.gstreamer.com/android/arm/gstreamer-sdk-android-arm-debug-2013.6.tar.bz2
@RichardWithnell
RichardWithnell / mptcp qemu
Last active January 18, 2024 01:23
MPTCP - qemu
git clone http://github.com/multipath-tcp/mptcp
cd mptcp
make defconfig
#configure mptcp
make all
cd arch/i386/boot
mkinitramfs -o initrd.img-3.14
sudo qemu-system-i386 -cpu Haswell -kernel bzImage -initrd initrd.img-3.14 -m 512M -net nic,model=e1000,vlan=0,macaddr=00:00:00:00:00:04 -net tap,ifname=server-tap0,vlan=0,script=no,downscript=no -hda ~/Software/uml/Debian-Server -append "root=/dev/sda"
@RichardWithnell
RichardWithnell / Debian Guest Additions
Last active August 29, 2015 14:14
Setup Debian Guest Additions
sudo apt-get install dkms build-essential linux-headers
sudo mount /media/cdrom
sudo sh /media/cdrom/VBoxLinuxAdditions.run
#Builds DCE for Debian Wheezy 64 bit, clean install to full dce-linux
sudo apt-get install mercurial bzr git python-dev libpcap-dev python-pygraphviz python-pygoocanvas g++ libqt4-dev libc6-dbg libdb-dev bison flex pkg-config cvs autoconf cmake
cd ~/
mkdir Software/dce
cd Software/dce
hg clone http://code.nsnam.org/bake bake
export BAKE_HOME=`pwd`/bake
export PATH=$PATH:$BAKE_HOME
export PYTHONPATH=$PYTHONPATH:$BAKE_HOME
diff --git a/src/network/utils/pcap-file-wrapper.cc b/src/network/utils/pcap-file-wrapper.cc
--- a/src/network/utils/pcap-file-wrapper.cc
+++ b/src/network/utils/pcap-file-wrapper.cc
@@ -55,6 +55,18 @@
Close ();
}
+void
+PcapFileWrapper::DoDispose (void)
+{
@RichardWithnell
RichardWithnell / Gstreamer 0.10
Last active September 21, 2015 16:04
Android Studio GStreamer
# http://stackoverflow.com/questions/27530263/unable-to-build-gstreamer-tutorials-using-android-studio
# Fails with android-ndk-r10d, r9d only supports up to Android-19
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {