Lines Matching refs:tablename
45 for_each_table(int (*func)(struct iptables_save_cb *cb, const char *tablename), in for_each_table() argument
50 char tablename[XT_TABLE_MAXNAMELEN+1]; in for_each_table() local
61 while (fgets(tablename, sizeof(tablename), procfile)) { in for_each_table()
62 if (tablename[strlen(tablename) - 1] != '\n') in for_each_table()
65 tablename); in for_each_table()
66 tablename[strlen(tablename) - 1] = '\0'; in for_each_table()
67 ret &= func(cb, tablename); in for_each_table()
74 static int do_output(struct iptables_save_cb *cb, const char *tablename) in do_output() argument
79 if (!tablename) in do_output()
82 h = cb->ops->init(tablename); in do_output()
85 h = cb->ops->init(tablename); in do_output()
95 printf("*%s\n", tablename); in do_output()
137 const char *tablename = NULL; in do_iptables_save() local
152 tablename = optarg; in do_iptables_save()
173 do_output(cb, tablename); in do_iptables_save()
193 return !do_output(cb, tablename); in do_iptables_save()