On Sunday 2009-11-15 08:09, basteon wrote: >g'time of day to every1, >I tried todo iptables initailazation in my application, but >untortunately received seghault, why it's happening? Because your code is faulty. Had you compiled with -Wall you would have gotten z.c:9: warning: ‘handle’ is used uninitialized in this function >Which's way I can realy initialize libiptq and xtables in my program? >int main(int argc, char *argv[]){ >char **table; >table = &argv[2]; >struct iptc_handle **handle; >printf("A %s\n",*table); >*handle = iptc_init(*table); >printf("B\n"); >} >-- >To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in >the body of a message to majordomo@xxxxxxxxxxxxxxx >More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html