summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2006-11-01 23:39:35 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2006-11-01 23:39:35 +0000
commit5966d375c67e2166f2e2f663bec1748924ee2161 (patch)
tree9eea172cad5d6c9ddbe6c8ff58b76ac49a2b2ad5
parentf9a31728f6753f90016705431761151520823c96 (diff)
Attach pfsync0 and pflog0 by default like they used to, /etc/rc depends on
them being there. diff & ok deraadt
-rw-r--r--sys/net/if_pflog.c3
-rw-r--r--sys/net/if_pfsync.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/if_pflog.c b/sys/net/if_pflog.c
index d4e093f3468..a6dbb2c6881 100644
--- a/sys/net/if_pflog.c
+++ b/sys/net/if_pflog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pflog.c,v 1.20 2006/10/25 11:26:47 henning Exp $ */
+/* $OpenBSD: if_pflog.c,v 1.21 2006/11/01 23:39:34 mcbride Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -96,6 +96,7 @@ pflogattach(int npflog)
LIST_INIT(&pflogif_list);
for (i = 0; i < PFLOGIFS_MAX; i++)
pflogifs[i] = NULL;
+ (void) pflog_clone_create(&pflog_cloner, 0);
if_clone_attach(&pflog_cloner);
}
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c
index d45f606476b..eb0aa77e119 100644
--- a/sys/net/if_pfsync.c
+++ b/sys/net/if_pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pfsync.c,v 1.71 2006/11/01 00:02:14 henning Exp $ */
+/* $OpenBSD: if_pfsync.c,v 1.72 2006/11/01 23:39:34 mcbride Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -114,6 +114,7 @@ struct if_clone pfsync_cloner =
void
pfsyncattach(int npfsync)
{
+ (void) pfsync_clone_create(&pfsync_cloner, 0);
if_clone_attach(&pfsync_cloner);
}
int