Lines Matching refs:info
322 if (strcmp(h->info.name, "filter") == 0) {
323 assert(h->info.valid_hooks
329 assert(h->info.hook_entry[NF_IP_LOCAL_IN] == 0);
333 assert(h->info.hook_entry[NF_IP_FORWARD] == n);
337 assert(h->info.hook_entry[NF_IP_LOCAL_OUT] == n);
339 user_offset = h->info.hook_entry[NF_IP_LOCAL_OUT];
340 } else if (strcmp(h->info.name, "nat") == 0) {
341 assert((h->info.valid_hooks
345 (h->info.valid_hooks
351 assert(h->info.hook_entry[NF_IP_PRE_ROUTING] == 0);
356 assert(h->info.hook_entry[NF_IP_POST_ROUTING] == n);
360 assert(h->info.hook_entry[NF_IP_LOCAL_OUT] == n);
361 user_offset = h->info.hook_entry[NF_IP_LOCAL_OUT];
363 if (h->info.valid_hooks & (1 << NF_IP_LOCAL_IN)) {
366 assert(h->info.hook_entry[NF_IP_LOCAL_IN] == n);
367 user_offset = h->info.hook_entry[NF_IP_LOCAL_IN];
370 } else if (strcmp(h->info.name, "mangle") == 0) {
374 assert((h->info.valid_hooks
377 (h->info.valid_hooks
385 assert(h->info.hook_entry[NF_IP_PRE_ROUTING] == 0);
389 if (h->info.valid_hooks & (1 << NF_IP_LOCAL_IN)) {
391 assert(h->info.hook_entry[NF_IP_LOCAL_IN] == n);
395 if (h->info.valid_hooks & (1 << NF_IP_FORWARD)) {
397 assert(h->info.hook_entry[NF_IP_FORWARD] == n);
402 assert(h->info.hook_entry[NF_IP_LOCAL_OUT] == n);
403 user_offset = h->info.hook_entry[NF_IP_LOCAL_OUT];
405 if (h->info.valid_hooks & (1 << NF_IP_POST_ROUTING)) {
408 assert(h->info.hook_entry[NF_IP_POST_ROUTING] == n);
409 user_offset = h->info.hook_entry[NF_IP_POST_ROUTING];
411 } else if (strcmp(h->info.name, "raw") == 0) {
412 assert(h->info.valid_hooks
417 assert(h->info.hook_entry[NF_IP_PRE_ROUTING] == 0);
421 assert(h->info.hook_entry[NF_IP_LOCAL_OUT] == n);
423 user_offset = h->info.hook_entry[NF_IP_LOCAL_OUT];
425 fprintf(stderr, "Unknown table `%s'\n", h->info.name);
439 if (!(h->info.valid_hooks & (1 << i)))
441 assert(h->info.underflow[i]
442 == get_chain_end(h, h->info.hook_entry[i]));
444 e = get_entry(h, get_chain_end(h, h->info.hook_entry[i]));
455 entry2index(h, get_entry(h, h->info.hook_entry[i]));
456 entry2index(h, get_entry(h, h->info.underflow[i]));
459 assert(h->info.size
460 >= h->info.num_entries * (sizeof(STRUCT_ENTRY)
467 assert(strcmp(h->info.name, h->entries.name) == 0);