diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-07-20 18:58:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-07-20 18:58:45 +0000 |
commit | 09b17f5dab5c4c6d73c813f334ed5cb1d9c679aa (patch) | |
tree | 68a676e71d8f94e2d94cdc34fc9e32d4a5bcf80c /sbin/pfctl/pfctl_parser.c | |
parent | 85090b3e23f439c1a585ac934a495b09835ad246 (diff) |
properly split yacc and lex use
Diffstat (limited to 'sbin/pfctl/pfctl_parser.c')
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index d6c552a2eca..8d934140eb3 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_parser.c,v 1.93 2002/07/15 18:13:53 henning Exp $ */ +/* $OpenBSD: pfctl_parser.c,v 1.94 2002/07/20 18:58:44 deraadt Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -683,16 +683,16 @@ print_rule(struct pf_rule *r) printf("dup-to "); else if (r->rt == PF_FASTROUTE) printf("fastroute"); - if (r->rt_ifname[0]) - printf("%s", r->rt_ifname); if (r->af && !PF_AZERO(&r->rt_addr, r->af)) { struct pf_addr_wrap aw; + printf("(%s ", r->rt_ifname); aw.addr = r->rt_addr; aw.addr_dyn = NULL; - printf(":"); print_addr(&aw, NULL, r->af); - } + printf(")"); + } else if (r->rt_ifname[0]) + printf("%s", r->rt_ifname); printf(" "); } if (r->af) { |