Skip to content

Instantly share code, notes, and snippets.

View geyslan's full-sized avatar
🚲
...

Geyslan Gregório geyslan

🚲
...
View GitHub Profile
@geyslan
geyslan / tiny_read_file.asm
Last active May 26, 2018 23:05
Tiny Read File - Assembly Language - Linux/x86 - forlife
; This is a snippet of the original file in https://github.com/geyslan/SLAE/blob/master/5th.assignment/tiny_read_file.asm
global _start
section .text
_start:
; int open(const char *pathname, int flags);
@geyslan
geyslan / ebpf_tc_port_drop.c
Last active May 25, 2021 11:25
ebpf_tc_port_drop
// BPF_PROG_TYPE_SCHED_CLS
#define KBUILD_MODNAME "tc"
#include <asm/types.h>
#include <asm/byteorder.h>
#include <linux/bpf.h>
#include <bpf/bpf_helpers.h>
#include <linux/pkt_cls.h>