Skip to content

Instantly share code, notes, and snippets.

View poonai's full-sized avatar
🦑
Confused

Poonai poonai

🦑
Confused
  • kumari kandam
  • 21:28 (UTC +05:30)
  • X @poonai_
View GitHub Profile
@poonai
poonai / bpf.c
Created August 21, 2018 17:25 — forked from msantos/bpf.c
Example of using bpf to capture packets
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <err.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>