Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
test for collectd dependency
/* gcc test.c -liptc -o a.out */
/* libiptc must be root to run since it maps kernel stuff, otherwise it segfaults */
#include <libiptc/libiptc.h> /* ip_t* */
int main(int argc, char** argv){
struct iptc_handle *handle = NULL;
handle = iptc_init("filter");
return 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment