Skip to content

Instantly share code, notes, and snippets.

@manuelvonthron-opalrt
manuelvonthron-opalrt / bpf-filter.c
Last active December 14, 2016 17:50
Raw network traffic filtering/writing with BPF for QNX/BSD
/**
* Created by Manuel Vonthron
* Copyright (c) 2014 OPAL-RT Technologies, Inc.
*/
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
/**
* (c) 2014, Manuel Vonthron - OPAL-RT Technologies, inc.
*/
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>