openbsd-ports/sysutils/pftop/patches/patch-pftop_c
2003-01-02 06:26:44 +00:00

52 lines
1.5 KiB
Plaintext

--- pftop.c.orig Tue Sep 10 12:58:15 2002
+++ pftop.c Wed Jan 1 23:21:59 2003
@@ -1439,8 +1439,8 @@ tb_print_fromto(struct pf_rule_addr *src
PF_AZERO(&src->addr, AF_INET6) &&
PF_AZERO(&dst->addr, AF_INET6) &&
#endif
- PF_AZERO(&src->mask, AF_INET6) &&
- PF_AZERO(&dst->mask, AF_INET6) &&
+ PF_AZERO(&src->addr.mask, AF_INET6) &&
+ PF_AZERO(&dst->addr.mask, AF_INET6) &&
!src->port_op && !dst->port_op)
tbprintf("all ");
else {
@@ -1456,15 +1456,15 @@ tb_print_fromto(struct pf_rule_addr *src
#else
if (PF_AZERO(&src->addr, AF_INET6) &&
#endif
- PF_AZERO(&src->mask, AF_INET6))
+ PF_AZERO(&src->addr.mask, AF_INET6))
tbprintf("any ");
else {
if (src->not)
tbprintf("! ");
#if OS_LEVEL > 31
- tb_print_addrw(&src->addr, &src->mask, af);
+ tb_print_addrw(&src->addr, &src->addr.mask, af);
#else
- tb_print_addr(&src->addr, &src->mask, af);
+ tb_print_addr(&src->addr, &src->addr.mask, af);
#endif
tbprintf(" ");
}
@@ -1485,15 +1485,15 @@ tb_print_fromto(struct pf_rule_addr *src
#else
if (PF_AZERO(&dst->addr, AF_INET6) &&
#endif
- PF_AZERO(&dst->mask, AF_INET6))
+ PF_AZERO(&dst->addr.mask, AF_INET6))
tbprintf("any ");
else {
if (dst->not)
tbprintf("! ");
#if OS_LEVEL > 31
- tb_print_addrw(&dst->addr, &dst->mask, af);
+ tb_print_addrw(&dst->addr, &dst->addr.mask, af);
#else
- tb_print_addr(&dst->addr, &dst->mask, af);
+ tb_print_addr(&dst->addr, &dst->addr.mask, af);
#endif
tbprintf(" ");
}