diff options
author | 2004-12-27 13:35:57 +0000 | |
---|---|---|
committer | 2004-12-27 13:35:57 +0000 | |
commit | e13fa5db40152d14fd044b7c974ba0430fbfad75 (patch) | |
tree | 10f8e16fe6e845b66b925248d246595028f8f94f | |
parent | GDB 6.3 (excluding .info files) (diff) | |
download | wireguard-openbsd-e13fa5db40152d14fd044b7c974ba0430fbfad75.tar.xz wireguard-openbsd-e13fa5db40152d14fd044b7c974ba0430fbfad75.zip |
reset skip interface flags on reloads and for -Fall
from max
-rw-r--r-- | sbin/pfctl/pfctl.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index dd7d4232918..440458dc61e 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.224 2004/12/22 17:17:55 dhartmei Exp $ */ +/* $OpenBSD: pfctl.c,v 1.225 2004/12/27 13:35:57 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1676,6 +1676,8 @@ main(int argc, char *argv[]) pfctl_clear_src_nodes(dev, opts); pfctl_clear_stats(dev, opts); pfctl_clear_fingerprints(dev, opts); + pfctl_set_interface_flags(pf, "", + PFI_IFLAG_SKIP, 0); } break; case 'o': @@ -1695,6 +1697,10 @@ main(int argc, char *argv[]) rulesopt = NULL; } + if ((rulesopt != NULL) && !*anchorname) + if (pfctl_set_interface_flags(pf, "", PFI_IFLAG_SKIP, 0)) + error = 1; + if (rulesopt != NULL) if (pfctl_file_fingerprints(dev, opts, PF_OSFP_FILE)) error = 1; |