/* * Run this after adding a new attribute to the nf_conntrack object */ #include #include #include #include #include /* * this file contains a test to check the set/get/copy/cmp APIs. */ static eval_sigterm(int status) { switch(WTERMSIG(status)) { case SIGSEGV: printf("received SIGSEV\n"); break; case 0: printf("OK\n", WTERMSIG(status)); break; default: printf("exited with signal: %d\n", WTERMSIG(status)); break; } } int main() { int ret, i; struct nfct_handle *h; struct nf_conntrack *ct, *tmp; char data[32]; int status; /* initialize fake data for testing purposes */ for (i=0; i