correctly copy the log interface spec when expanding an antispoof rule that
authorhenning <henning@openbsd.org>
Thu, 7 Aug 2008 18:29:32 +0000 (18:29 +0000)
committerhenning <henning@openbsd.org>
Thu, 7 Aug 2008 18:29:32 +0000 (18:29 +0000)
covers loopback addresses. ok ryan
problem report from Harald Dunkel <harald.dunkel@aixigo.de>

sbin/pfctl/parse.y

index 55c3a75..c9ccec6 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: parse.y,v 1.549 2008/07/03 16:09:34 deraadt Exp $     */
+/*     $OpenBSD: parse.y,v 1.550 2008/08/07 18:29:32 henning Exp $     */
 
 /*
  * Copyright (c) 2001 Markus Friedl.  All rights reserved.
@@ -1245,6 +1245,7 @@ antispoof : ANTISPOOF logquick antispoof_ifspc af antispoof_opts {
                                        r.action = PF_DROP;
                                        r.direction = PF_IN;
                                        r.log = $2.log;
+                                       r.logif = $2.logif;
                                        r.quick = $2.quick;
                                        r.af = $4;
                                        if (rule_label(&r, $5.label))