Currently, libdnet prints out junk when printing pf table rules.
Seeing as it can't properly manipulate those entries, skip
printing them as well.
This will probably need some lovely #ifdef'ing for
backwards compat ;)
--- src/fw-pf.c.orig Wed Mar 9 09:47:23 2005
+++ src/fw-pf.c Wed Mar 9 13:45:46 2005
@@ -295,6 +295,8 @@ fw_loop(fw_t *fw, fw_handler callback, v
if ((ret = ioctl(fw->fd, DIOCGETRULE, &pr)) < 0)
break;
+ if (pr.rule.src.addr.type == PF_ADDR_TABLE || pr.rule.dst.addr.type == PF_ADDR_TABLE)
+ continue;
if (pr_to_fr(&pr.rule, &fr) < 0)
continue;
if ((ret = callback(&fr, arg)) != 0)
|