Skip to content

Instantly share code, notes, and snippets.

View slankdev's full-sized avatar
🏠
Working from home

Hiroki SHIROKURA slankdev

🏠
Working from home
View GitHub Profile
@slankdev
slankdev / tinet
Created August 22, 2020 00:56
tinet
This file has been truncated, but you can view the full file.
@slankdev
slankdev / prefix_sid_type4.pcap
Last active January 12, 2020 14:48
Prefix-sid for srv6
@slankdev
slankdev / 0001-Backport-librte_bpf-to-v17.11-from-v18.11.patch
Last active December 22, 2018 06:41
Backport librte_bpf to v17.11 from v18.11 partially
From da321d0904133eb04dfb063ff075135b791cec0a Mon Sep 17 00:00:00 2001
From: Hiroki Shirokura <slankdev@nttv6.jp>
Date: Sun, 9 Dec 2018 20:11:28 +0900
Subject: [PATCH] Backport librte_bpf to v17.11 from v18.11
---
config/common_base | 5 +
lib/Makefile | 2 +
lib/librte_bpf/Makefile | 33 +
lib/librte_bpf/bpf.c | 61 +
@slankdev
slankdev / goplane
Last active August 26, 2018 12:14
goplane binary
This file has been truncated, but you can view the full file.
@slankdev
slankdev / README.md
Last active July 18, 2018 18:21
セキュリティ・ミニキャンプ in 山梨 2018 事前課題. パケット解析入門

選考問題:

以下の内容は暗号化されていない通信を想定します. パケットを見ると, 通信の内容を確認することができます. 例えば, 誰が誰におくったか, どんな機能を使ったか等の情報です.

[1] 本ページに添付されている tcp.pcap の内容から先ほど例とした ような情報としてどんなことがわかるか, 複数答えてください.

@slankdev
slankdev / vm0.xml
Created December 21, 2017 12:52
うまくいった
<domain type='kvm' id='14'>
<name>vm0</name>
<uuid>fcb53c8d-9c07-422e-a9ad-4a35e7e7c558</uuid>
<memory unit='KiB'>4000768</memory>
<currentMemory unit='KiB'>4000000</currentMemory>
<memoryBacking>
<hugepages>
<page size='2048' unit='KiB' nodeset='0'/>
</hugepages>
</memoryBacking>
@slankdev
slankdev / setup.sh
Last active December 2, 2017 18:23
SETUP.sh
#!/bin/sh
# $ curl -fsSL URL | sh
cd $HOME
git clone https://github.com/slankdev/dotfiles
cd dotfiles
bash tools/basic_cui_apt.sh
bash setup.sh init
@slankdev
slankdev / Makefile
Last active November 12, 2017 10:39
LIBSLANKDEV := $(HOME)/git/libslankdev
CXXFLAGS += -I$(LIBSLANKDEV) -std=c++11
all:
$(CXX) $(CXXFLAGS) main.cc $(LDFLAGS)
@slankdev
slankdev / server.cc
Last active November 7, 2017 09:34
backup
int rest_api_thread(void* arg_)
{
ssn_nfvi* sys = reinterpret_cast<ssn_nfvi*>(arg_);
crow::SimpleApp app;
CROW_ROUTE(app,"/") ( [&sys]() {
crow::json::wvalue x;
x["vnfs"] = "vnfs informantions";
x["stats"] = "system infos";
return x;
---
swagger: "2.0"
info:
version: "0.0.0"
title: "Susanow Control API"
license:
name: "MIT License"
url: "https://opensource.org/licenses/MIT"
host: "virtserver.swaggerhub.com"
basePath: "/susanow/ssnctl/0.0.0"