Created
February 26, 2012 21:06
-
-
Save ChrisLundquist/1918989 to your computer and use it in GitHub Desktop.
test for collectd dependency
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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