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