Skip to content

Instantly share code, notes, and snippets.

View AaronRuB1o's full-sized avatar

Aaron AaronRuB1o

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AaronRuB1o
AaronRuB1o / udp_to_local.c
Created December 3, 2024 02:13 — forked from leonid-ed/udp_to_local.c
Examples of using raw sockets (c, linux, raw socket)
/*
An example of using raw sockets.
You can capture packets by tcpdump:
tcpdump -X -s0 -i lo -p udp
*/
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>