version 1.4, 2013/11/12 00:46:34 |
version 1.5, 2013/11/19 00:28:41 |
Line 420 npfctl_print_table(npf_conf_info_t *ctx, |
|
Line 420 npfctl_print_table(npf_conf_info_t *ctx, |
|
const char *name = npf_table_getname(tl); |
const char *name = npf_table_getname(tl); |
const int type = npf_table_gettype(tl); |
const int type = npf_table_gettype(tl); |
|
|
|
if (name[0] == '.') { |
|
/* Internal tables use dot and are hidden. */ |
|
return; |
|
} |
|
|
fprintf(ctx->fp, "table <%s> type %s\n", name, |
fprintf(ctx->fp, "table <%s> type %s\n", name, |
(type == NPF_TABLE_HASH) ? "hash" : |
(type == NPF_TABLE_HASH) ? "hash" : |
(type == NPF_TABLE_TREE) ? "tree" : |
(type == NPF_TABLE_TREE) ? "tree" : |