Home | History | Annotate | Download | only in libiptc

Lines Matching refs:info

275 	if (strcmp(h->info.name, "filter") == 0) {
276 assert(h->info.valid_hooks
282 assert(h->info.hook_entry[NF_IP6_LOCAL_IN] == 0);
286 assert(h->info.hook_entry[NF_IP6_FORWARD] == n);
290 assert(h->info.hook_entry[NF_IP6_LOCAL_OUT] == n);
292 user_offset = h->info.hook_entry[NF_IP6_LOCAL_OUT];
293 } else if (strcmp(h->info.name, "nat") == 0) {
294 assert((h->info.valid_hooks
298 (h->info.valid_hooks
304 assert(h->info.hook_entry[NF_IP6_PRE_ROUTING] == 0);
309 assert(h->info.hook_entry[NF_IP6_POST_ROUTING] == n);
313 assert(h->info.hook_entry[NF_IP6_LOCAL_OUT] == n);
314 user_offset = h->info.hook_entry[NF_IP6_LOCAL_OUT];
316 if (h->info.valid_hooks & (1 << NF_IP6_LOCAL_IN)) {
319 assert(h->info.hook_entry[NF_IP6_LOCAL_IN] == n);
320 user_offset = h->info.hook_entry[NF_IP6_LOCAL_IN];
323 } else if (strcmp(h->info.name, "mangle") == 0) {
327 assert((h->info.valid_hooks
330 (h->info.valid_hooks
338 assert(h->info.hook_entry[NF_IP6_PRE_ROUTING] == 0);
342 if (h->info.valid_hooks & (1 << NF_IP6_LOCAL_IN)) {
344 assert(h->info.hook_entry[NF_IP6_LOCAL_IN] == n);
348 if (h->info.valid_hooks & (1 << NF_IP6_FORWARD)) {
350 assert(h->info.hook_entry[NF_IP6_FORWARD] == n);
355 assert(h->info.hook_entry[NF_IP6_LOCAL_OUT] == n);
356 user_offset = h->info.hook_entry[NF_IP6_LOCAL_OUT];
358 if (h->info.valid_hooks & (1 << NF_IP6_POST_ROUTING)) {
361 assert(h->info.hook_entry[NF_IP6_POST_ROUTING] == n);
362 user_offset = h->info.hook_entry[NF_IP6_POST_ROUTING];
364 } else if (strcmp(h->info.name, "raw") == 0) {
365 assert(h->info.valid_hooks
370 assert(h->info.hook_entry[NF_IP6_PRE_ROUTING] == 0);
374 assert(h->info.hook_entry[NF_IP6_LOCAL_OUT] == n);
376 user_offset = h->info.hook_entry[NF_IP6_LOCAL_OUT];
378 fprintf(stderr, "Unknown table `%s'\n", h->info.name);
392 if (!(h->info.valid_hooks & (1 << i)))
394 assert(h->info.underflow[i]
395 == get_chain_end(h, h->info.hook_entry[i]));
397 e = get_entry(h, get_chain_end(h, h->info.hook_entry[i]));
410 iptcb_entry2index(h, get_entry(h, h->info.hook_entry[i]));
411 iptcb_entry2index(h, get_entry(h, h->info.underflow[i]));
414 assert(h->info.size
415 >= h->info.num_entries * (sizeof(STRUCT_ENTRY)
422 assert(strcmp(h->info.name, h->entries.name) == 0);