Skip to content

Instantly share code, notes, and snippets.

View simple_test_torque.c
/**
* (c) 2014, Manuel Vonthron - OPAL-RT Technologies, inc.
*/
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
@manuelvonthron-opalrt
manuelvonthron-opalrt / bpf-filter.c
Last active Dec 14, 2016
Raw network traffic filtering/writing with BPF for QNX/BSD
View bpf-filter.c
/**
* 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>