Skip to content

Instantly share code, notes, and snippets.

Diego Pino dpino

View GitHub Profile
View PR 513 - selftest
$ git log -1
commit 9856da7802247e70ba7410666d0048fc7a1e2f07
Author: Diego Pino Garcia <dpino@igalia.com>
Date: Thu Oct 27 14:48:40 2016 +0000
Add unit test for ipv6_cache_trigger
TEST core.timer
TEST core.counter
TEST core.lib
View PR 521 - selftest
commit db2e4369522aee5ec2ee2ec8391ac1d0bd7be7d8
Author: Diego Pino Garcia <dpino@igalia.com>
Date: Thu Oct 27 16:15:30 2016 +0200
Rename snabb-lwaftr to snabbvmx in Makefile
DIR obj/testlog
TEST lib.pmu
SKIPPED testlog/lib.pmu
TEST lib.numa
View PR 515 - selftest
$ git log -1
commit faa32bfcacda682f19bdfabc5721fef3e3972a97
Author: Diego Pino Garcia <dpino@igalia.com>
Date: Thu Oct 27 13:32:26 2016 +0200
Add image
TEST core.timer
TEST core.counter
TEST core.lib
@dpino
dpino / ns-ipv6-no-nat.sh
Created Apr 29, 2016
Create Network Namespace with IPv6 connectivity via Hurricane Electric tunnel (no NAT66 needed)
View ns-ipv6-no-nat.sh
#!/usr/bin/env bash
set -x
if [[ $EUID -ne 0 ]]; then
echo "You must run this script as root."
exit 1
fi
# Fill up IPv6 addresses for the veth pair. Addresses must belong to the
@dpino
dpino / ns-ipv6.sh
Created Apr 29, 2016
Create Network Namespace with IPv6 connectivity via Hurricane Electric tunnel
View ns-ipv6.sh
#!/usr/bin/env bash
set -x
if [[ $EUID -ne 0 ]]; then
echo "You must run this script as root."
exit 1
fi
VETH1_IPV6=fd00::1
View sof-36834786.lua
-- Possible solution to http://stackoverflow.com/questions/36834786/how-to-save-a-table-to-a-file-from-lua/36836187#36836187
function print_r (t, fd)
fd = fd or io.stdout
local function print(str)
str = str or ""
fd:write(str.."\n")
end
local print_r_cache={}
local function sub_print_r(t,indent)
@dpino
dpino / ns-inet.sh
Last active Jul 5, 2020
Setup a network namespace with Internet access
View ns-inet.sh
#!/usr/bin/env bash
# set -x
# Returns all available interfaces, except "lo" and "veth*".
available_interfaces()
{
local ifaces=(`ip li sh | cut -d " " -f 2`)
local ret=()
View snabb_bot.sh
#!/usr/bin/env bash
# set -x
# Snabb Switch CI for GitHub Pull Requests. Depends on `jq'
# (http://stedolan.github.io/jq/).
export SNABBBOTDIR=${SNABBBOTDIR:-"/tmp/snabb_bot"}
export REPO=${REPO:-"igalia/snabbswitch"}
export CURRENT=${CURRENT:-"lwaftr"}
View log
Host: Linux snabb1 3.18.24 x86_64 Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
Image: lwaftr/snabb-test
Pull Request: #95
Current Head: 8364729b1cc4975e1c03e389de162e7e1bd7f3ed
Pull Request Head: dd69563c76159fb02fded679c36bc36a20083996
ERROR: Failed to build 95
From https://github.com/igalia/snabbswitch
* [new ref] refs/pull/95/head -> pr95
Switched to branch 'pr95'
View log
Host: Linux snabb1 3.18.24 x86_64 Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
Image: lwaftr/snabb-test
Pull Request: #176
Current Head: 8364729b1cc4975e1c03e389de162e7e1bd7f3ed
Pull Request Head: 2fc51b6dc6620c0ebae168b2e4eceb6c9d475999
ERROR: Failed to build 176
From https://github.com/igalia/snabbswitch
* [new ref] refs/pull/176/head -> pr176
Switched to branch 'pr176'
You can’t perform that action at this time.