- 【CPU】AMD Ryzen 9 5900X
- 【CPUクーラー】NZXT KRAKEN Z73 RL-KRZ73-01
- 【マザーボード】ASRock X570 Taichi
- 【ビデオカード】MSI GeForce RTX 3070 GAMING X TRIO [PCIExp 8GB]
- 【SSD】WESTERN DIGITAL WD Blue SN550 NVMe WDS100T2B0C
- 【ケース】COOLER MASTER MasterBox TD500 Mesh White MCB-D500D-WGNN-S01
- 【電源】玄人志向 KRPW-GK750W/90+ メモリーは余ってたやつを使った
This file contains hidden or 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
srv6_bpf.o: file format ELF64-BPF | |
Disassembly of section xdp_prog: | |
0000000000000000 srv6_handler: | |
; { | |
0: r6 = r1 | |
; void *data_end = (void *)(long)xdp->data_end; |
This file contains hidden or 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
toor@router-01:~$ sudo ./vinbero | |
2021/01/04 19:20:37 program srv6_handler: load program: permission denied: func#0 @0 | |
btf_vmlinux is malformed | |
Unrecognized arg#0 type PTR | |
0: R1=ctx(id=0,off=0,imm=0) R10=fp0 | |
; int srv6_handler(struct xdp_md *xdp) | |
0: (bf) r6 = r1 | |
1: R1=ctx(id=0,off=0,imm=0) R6_w=ctx(id=0,off=0,imm=0) R10=fp0 | |
; void *data_end = (void *)(long)xdp->data_end; | |
1: (61) r2 = *(u32 *)(r6 +4) |
This file contains hidden or 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
srv6_bpf.o: file format ELF64-BPF | |
Disassembly of section xdp_prog: | |
0000000000000000 srv6_handler: | |
; { | |
0: r6 = r1 | |
; void *data_end = (void *)(long)xdp->data_end; |
This file contains hidden or 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
2021/01/04 18:43:09 program srv6_handler: load program: permission denied: func#0 @0 | |
btf_vmlinux is malformed | |
Unrecognized arg#0 type PTR | |
0: R1=ctx(id=0,off=0,imm=0) R10=fp0 | |
; int srv6_handler(struct xdp_md *xdp) | |
0: (bf) r6 = r1 | |
1: R1=ctx(id=0,off=0,imm=0) R6_w=ctx(id=0,off=0,imm=0) R10=fp0 | |
; void *data_end = (void *)(long)xdp->data_end; | |
1: (61) r2 = *(u32 *)(r6 +4) | |
2: R1=ctx(id=0,off=0,imm=0) R2_w=pkt_end(id=0,off=0,imm=0) R6_w=ctx(id=0,off=0,imm=0) R10=fp0 |
This file contains hidden or 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 | |
# this network example | |
# A(.1) --172.27.1.0/24-- (.2)B(.2) --172.27.2.0/24-- C(.1) | |
set -eu | |
if [[ $(id -u) -ne 0 ]] ; then | |
echo "Please run with sudo" |
これはlinux入れるときにtry without installですら固まるという話があり、それが腹立つのでメモ。
grab2でのカーネルパラメータを入れる
よくスプラッシュをけせみたいなことが書いてるがそんなことはない。
This file contains hidden or 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/zsh | |
git filter-branch -f --env-filter ' | |
OLD_EMAIL="" | |
CORRECT_NAME="takehaya" | |
CORRECT_EMAIL="[email protected]" | |
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] | |
then | |
export GIT_COMMITTER_NAME="$CORRECT_NAME" | |
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL" | |
fi |
This file contains hidden or 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: ruby -*- | |
Vagrant.configure("2") do |config| | |
# config.vm.box = "bento/ubuntu-19.10" | |
config.vm.box = "bento/ubuntu-18.04" | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = "4096" | |
vb.cpus = 4 | |
end | |
config.vm.synced_folder ".", "/home/vagrant/workspace" |
This file contains hidden or 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/sh | |
# install dependencies for building iproute2 | |
sudo apt update | |
DEBIAN_FRONTEND=noninteractive sudo apt upgrade -y | |
sudo apt install -y bison flex clang gcc llvm libelf-dev bc libssl-dev tmux trace-cmd | |
# update iproute2 | |
sudo apt install -y pkg-config bison flex make gcc | |
cd /tmp |