Skip to content

Instantly share code, notes, and snippets.

@ChrisLundquist
Created February 26, 2012 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisLundquist/1918989 to your computer and use it in GitHub Desktop.
Save ChrisLundquist/1918989 to your computer and use it in GitHub Desktop.
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");
iptc_free(handle);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment