Home | History | Annotate | Download | only in iptables

Lines Matching full:tablename

38 static int for_each_table(int (*func)(const char *tablename))
42 char tablename[IP6T_TABLE_MAXNAMELEN+1];
48 while (fgets(tablename, sizeof(tablename), procfile)) {
49 if (tablename[strlen(tablename) - 1] != '\n')
51 "Badly formed tablename `%s'\n",
52 tablename);
53 tablename[strlen(tablename) - 1] = '\0';
54 ret &= func(tablename);
62 static int do_output(const char *tablename)
67 if (!tablename)
70 h = ip6tc_init(tablename);
73 h = ip6tc_init(tablename);
84 printf("*%s\n", tablename);
140 const char *tablename = NULL;
168 tablename = optarg;
174 do_output(tablename);
184 return !do_output(tablename);