Skip to content

Instantly share code, notes, and snippets.

View BrunoMunao's full-sized avatar

Bruno de Avila BrunoMunao

View GitHub Profile
@BrunoMunao
BrunoMunao / sniffer_ipv6.c
Last active June 23, 2021 00:48 — forked from fffaraz/lsniffer.c
Packet Sniffer Code in C using Linux Sockets | http://www.binarytides.com/packet-sniffer-code-c-linux/ - IPV6 visualization (Bruno de Avila e Lucas José Alessio)
#include <netinet/in.h>
#include <errno.h>
#include <netdb.h>
#include <stdio.h> //For standard things
#include <stdlib.h> //malloc
#include <string.h> //strlen
#include <netinet/ip_icmp.h> //Provides declarations for icmp header
#include <netinet/udp.h> //Provides declarations for udp header
#include <netinet/tcp.h> //Provides declarations for tcp header